|
1 | 1 | /* Part of SWI-Prolog |
2 | 2 |
|
3 | 3 | 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 |
7 | 7 | VU University Amsterdam |
8 | 8 | SWI-Prolog Solutions b.v. |
9 | 9 | All rights reserved. |
|
254 | 254 | * FOLDL * |
255 | 255 | *******************************/ |
256 | 256 |
|
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). |
261 | 261 | % |
262 | 262 | % Fold an ensemble of _m_ (0 <= _m_ <= 4) lists of length _n_ |
263 | 263 | % head-to-tail ("fold-left"), using columns of _m_ list elements as |
|
310 | 310 | * SCANL * |
311 | 311 | *******************************/ |
312 | 312 |
|
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). |
317 | 317 | % |
318 | 318 | % Scan an ensemble of _m_ (0 <= _m_ <= 4) lists of length _n_ |
319 | 319 | % head-to-tail ("scan-left"), using columns of _m_ list elements as |
|
0 commit comments