foxx3r / scalar_multiplication

That's my resolution to the scalar multiplication's challenge in Prolog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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] .

About

That's my resolution to the scalar multiplication's challenge in Prolog

License:MIT License


Languages

Language:Prolog 100.0%