name = 'sum/2' slug = 'find the sum of all elements in list' description = '''\
sum(L, Sum): Sum is the sum of all elements in the list L.
sum(L, Sum)
Sum
L
?- sum([1,2,3], Sum). Sum = 6.