|
From: Vitor S. C. <vs...@us...> - 2008-07-16 10:45:40
|
Update of /cvsroot/yap/docs In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv19009/docs Modified Files: yap.tex Log Message: add extra versions to maplist and fix apply macros to handle predicates with the same aargument. Index: yap.tex =================================================================== RCS file: /cvsroot/yap/docs/yap.tex,v retrieving revision 1.258 retrieving revision 1.259 diff -u -r1.258 -r1.259 --- yap.tex 11 Jul 2008 17:02:07 -0000 1.258 +++ yap.tex 16 Jul 2008 10:45:46 -0000 1.259 @@ -8025,6 +8025,30 @@ Creates @var{ListOut} by applying the predicate @var{Pred} to all elements of @var{ListIn}. +@item maplist(+@var{Pred}, ?@var{ListIn}) +@findex maplist/3 +@snindex maplist/3 +@cnindex maplist/3 + Creates @var{ListOut} by applying the predicate @var{Pred} to all +elements of @var{ListIn}. + +@item maplist(+@var{Pred}, ?@var{L1}, ?@var{L2}, ?@var{L3}) +@findex maplist/4 +@snindex maplist/4 +@cnindex maplist/4 + @var{L1}, @var{L2}, and @var{L3} are such that + @code{call(@var{Pred},@var{A1},@var{A2},@var{A3})} holds for every + corresponding element in lists @var{L1}, @var{L2}, and @var{L3}. + +@item maplist(+@var{Pred}, ?@var{L1}, ?@var{L2}, ?@var{L3}, ?@var{L4}) +@findex maplist/5 +@snindex maplist/5 +@cnindex maplist/5 + @var{L1}, @var{L2}, @var{L3}, and @var{L4} are such that + @code{call(@var{Pred},@var{A1},@var{A2},@var{A3},@var{A4})} holds + for every corresponding element in lists @var{L1}, @var{L2}, @var{L3}, and + @var{L4}. + @item checklist(+@var{Pred}, +@var{List}) @findex checklist/2 @snindex checklist/2 |