1Lazy.traverse(3kaya) Kaya module reference Lazy.traverse(3kaya)
2
3
4
6 Lazy::traverse - Iteration over lazy lists
7
9 Void traverse( Bool(a, Int) block, Lazy::List<a> xs )
10
12 block The block of code to execute for each list element.
13
14 list The Lazy list to traverse
15
17 Used by for loops to traverse lazy Lazy.List (3kaya) data structure. It
18 is unlikely that you will need to call this function directly.
19
20 If the List is infinite in size, this function will not exit unless the
21 block function throws an exception or otherwise breaks out of the loop.
22
24 Kaya standard library by Edwin Brady, Chris Morris and others
25 (kaya@kayalang.org). For further information see http://kayalang.org/
26
28 The Kaya standard library is free software; you can redistribute it
29 and/or modify it under the terms of the GNU Lesser General Public
30 License (version 2.1 or any later version) as published by the Free
31 Software Foundation.
32
33
34
35Kaya December 2010 Lazy.traverse(3kaya)