.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "Lazy.traverse" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Lazy::traverse \- Iteration over lazy lists .SH "SYNOPSIS" .B Void traverse( \fIBool(a, Int) block, Lazy::List xs\fP .B ")" .SH "ARGUMENTS" .PP .B "block" The block of code to execute for each list element. .PP .B "list" The Lazy list to traverse .SH "DESCRIPTION" .PP Used by \fBfor \fP loops to traverse lazy .B "Lazy.List"(3kaya) data structure. It is unlikely that you will need to call this function directly. .PP If the List is infinite in size, this function will not exit unless the block function throws an exception or otherwise breaks out of the loop. .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.