scalar_multiplication
That's my resolution for the scalar multiplication's challenge in Prolog
Examples:
?- [scalar].
true.
?- scalarMult(7, [6, 7, 10, 12, 5], Y).
Y = [42, 49, 70, 84, 35] .
?- scalarMult(3, [3, 6, 9, 12, 15], X).
X = [9, 18, 27, 36, 45] .