From ra27946@scs.ubbcluj.ro  Thu Dec 14 11:54:58 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 LAA21583
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 11:54:42 +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 MAA00893
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 12:56:12 +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 MAA14803
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 12:54:55 +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 eBEAskb26665
	for <prolog@swi.psy.uva.nl>; Thu, 14 Dec 2000 12:54:47 +0200
Date: Thu, 14 Dec 2000 12:54:47 +0200 (EET)
From: Rastei Amelia Viorela  <ra27946@scs.ubbcluj.ro>
To: prolog@swi.psy.uva.nl
Message-ID: <Pine.LNX.4.21.0012141253430.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



   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. 

