From jan@swi.swi.psy.uva.nl Mon Dec  3 14:49:34 2001
Received: from gollem.swi.psy.uva.nl (gollem.swi.psy.uva.nl [145.18.152.30])
	by swi.psy.uva.nl (8.10.2+Sun/8.11.2) with ESMTP id fB3DnYI01434;
	Mon, 3 Dec 2001 14:49:34 +0100 (MET)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) id fB3DnZP15496;
	Mon, 3 Dec 2001 14:49:35 +0100
Date: Mon, 3 Dec 2001 14:49:35 +0100
Message-Id: <200112031349.fB3DnZP15496@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: [SWIPL] help with min please
To: Sebastian Schneider <ss@alesig.de>, prolog@swi.swi.psy.uva.nl
In-Reply-To: Sebastian Schneider's message of Mon, 03 Dec 2001 14:23:37 +0000
Phone: +31 - 20 - 525 6121

> 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

