Subject: Re: [SWIPL] help with min please

From: Jan Wielemaker <[email-masked]>
Date: Mon, 3 Dec 2001 14:49:35 +0100

> How can i use the min/2?
> 
> min(+Expr1, +Expr2)
>     Evaluates to the smallest of both Expr1 and Expr2.
> 
> is wrote in help, but i just use every possible combination of it like
> min([1,2],X) or something, but i always get
> ERROR: Undefined procedure: min/2

Still should make that a bit more clear in the manual.  If you see the
paper manual you see these things in their context, which indicates
they are arithmetic functions.  So, the answer is

	?- A is min(X, Y)

	Cheers --- Jan