Skip to content

Commit 193a4f5

Browse files
committed
DOC: Settle modes for foldl/4-7 and scanl/4-7
This invalidates PR #820.
1 parent 42eb82c commit 193a4f5

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

library/apply.pl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* Part of SWI-Prolog
22
33
Author: Jan Wielemaker
4-
E-mail: J.Wielemaker@vu.nl
5-
WWW: http://www.swi-prolog.org
6-
Copyright (c) 2007-2023, University of Amsterdam
4+
E-mail: jan@swi-prolog.org
5+
WWW: https://www.swi-prolog.org
6+
Copyright (c) 2007-2026, University of Amsterdam
77
VU University Amsterdam
88
SWI-Prolog Solutions b.v.
99
All rights reserved.
@@ -254,10 +254,10 @@
254254
* FOLDL *
255255
*******************************/
256256

257-
%! foldl(:Goal, +List, +V0, -V).
258-
%! foldl(:Goal, +List1, +List2, +V0, -V).
259-
%! foldl(:Goal, +List1, +List2, +List3, +V0, -V).
260-
%! foldl(:Goal, +List1, +List2, +List3, +List4, +V0, -V).
257+
%! foldl(:Goal, ?List, +V0, -V).
258+
%! foldl(:Goal, ?List1, ?List2, +V0, -V).
259+
%! foldl(:Goal, ?List1, ?List2, ?List3, +V0, -V).
260+
%! foldl(:Goal, ?List1, ?List2, ?List3, ?List4, +V0, -V).
261261
%
262262
% Fold an ensemble of _m_ (0 <= _m_ <= 4) lists of length _n_
263263
% head-to-tail ("fold-left"), using columns of _m_ list elements as
@@ -310,10 +310,10 @@
310310
* SCANL *
311311
*******************************/
312312

313-
%! scanl(:Goal, +List, +V0, -Values).
314-
%! scanl(:Goal, +List1, +List2, +V0, -Values).
315-
%! scanl(:Goal, +List1, +List2, +List3, +V0, -Values).
316-
%! scanl(:Goal, +List1, +List2, +List3, +List4, +V0, -Values).
313+
%! scanl(:Goal, ?List, +V0, -Values).
314+
%! scanl(:Goal, ?List1, ?List2, +V0, -Values).
315+
%! scanl(:Goal, ?List1, ?List2, ?List3, +V0, -Values).
316+
%! scanl(:Goal, ?List1, ?List2, ?List3, ?List4, +V0, -Values).
317317
%
318318
% Scan an ensemble of _m_ (0 <= _m_ <= 4) lists of length _n_
319319
% head-to-tail ("scan-left"), using columns of _m_ list elements as

0 commit comments

Comments
 (0)