Subject: Re: [SWIPL] About Applying a predicate to all the elements of a list (fwd)

From: Nicos Angelopoulos <[email-masked]>
Date: Thu, 14 Dec 2000 15:48:52 +0000 (GMT)

On Thu, 14 Dec 2000, Jan Wielemaker wrote:

> For those interested, using maplist doesn't make your programs faster.
> If you are in a hurry, simply write the loop yourself.  The trouble
> is call/3, performing a rather expensive meta-call.
> 
> 	--- Jan
> 

	alternatively one might use syntactic transformations
	during compile time and factor out the meta call,
	(term_expansion/2) 

	the transformation is straight forward since 
	it doesnt depend on any other information,

	the drawback of course is that you get
	extra clauses in your database and that these
	clauses are dynamic (due to use of assert)

nicos.