Documentation Prolog Predicate Reference lists prod_list/2

prod_list/2

Product of the elements of a list.

Description

prod_list( +list, ?number )

prod_list(List, Prod) is true if and only if Prod is the result of multiplying all the elements on List.

Implementation