From ra27946@scs.ubbcluj.ro  Thu Dec 14 12:05:56 2000
Received: from Proxy2.UBBCluj.Ro (IDENT:root@Mail-Exchange.UBBCluj.ro [193.230.247.198])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA22823
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 12:05:51 +0100 (MET)
Received: from Zeus.UBBCluj.Ro (IDENT:root@Zeus.UBBCluj.Ro [193.231.20.1])
	by Proxy2.UBBCluj.Ro (8.9.3/8.9.3) with ESMTP id NAA01062
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 13:07:09 +0200
Received: from Home.SCS.UBBCluj.Ro (IDENT:root@home.scs.ubbcluj.ro [193.231.20.38])
	by Zeus.UBBCluj.Ro (8.9.3/8.9.3) with ESMTP id NAA16305
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 13:05:52 +0200
Received: from Rave.SCS.UBBCluj.Ro (IDENT:ra27946@Rave.SCS.UBBCluj.Ro [193.231.20.39])
	by Home.SCS.UBBCluj.Ro (8.11.0/8.11.0) with ESMTP id eBEB5qb26979
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 13:05:52 +0200
Date: Thu, 14 Dec 2000 13:05:54 +0200 (EET)
From: Rastei Amelia Viorela  <ra27946@scs.ubbcluj.ro>
To: prolog@swi.psy.uva.nl
In-Reply-To: <Pine.LNX.4.21.0012141253430.29318-100000@Rave.SCS.UBBCluj.Ro>
Message-ID: <Pine.LNX.4.21.0012141305380.29318-100000@Rave.SCS.UBBCluj.Ro>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [SWIPL] About Applying a predicate to all the elements of a list

On Thu, 14 Dec 2000, Rastei Amelia Viorela wrote:

> 
> 
>    Consider I have a predicate
> 
>     replace(El,Poz, List, Rez)
>  which replaces the element from the position Poz in List with El and the
> resulting list 
> is Rez.
> 
>   Consider than that List=[[1,2,3],[3,4,5,6],...] so a list of lists. And
> I want to aplly predicate Replace to all the lists in List.
> 
>    How can I do that???
>    How should I write : maplist(replace..?.,List,Rez)  ?
> 
> 
> 
> 
> 

-- 

 Amelia Rastei,
 Dept. Computer Science,
 Babes Bolyai University,
 Cluj Napoca, Romania. 

