[eclipse-clp-users] Product of a list (or array)

From: Martin Michalowski <martin.michalowski_at_adventiumlabs.com>
Date: Wed, 27 Feb 2013 14:50:20 -0600
Is there an equivalent built-in predicate for sum(+ExprList, -Result) that evaluates the arithmetic expressions in ExprList and unifies their product with Result?  If not, do people have a fast/easy way of generating the product of a list?  I know the times predicate is available but I'm hoping to avoid iterating over multiple instances of it.

Best,
Martin

--
Martin Michalowski, Ph.D.
Principal Research Scientist, Adventium Labs
martin.michalowski_at_adventiumlabs.com
http://www.adventiumlabs.com/staff/martin-michalowski
Received on Wed Feb 27 2013 - 20:49:29 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 28 2013 - 18:13:18 CET