Lazy module
This module allows the creation and reading of lazy linked lists. Unlike Prelude::List, these lists can be of infinite size.
Data types
- Lazy::List<a> - Lazy linked list type.
Functions
- [a] array(Lazy::List<a> xs) - Convert a lazy list into an array.
- Lazy::List<Int> countFrom(Int x,Int step=1) - Create an infinite list of numbers.
- Void iterate(Lazy::List<a> xs,Void(a) action) - Iterate across a lazy list.
- Lazy::List<a> take(Int n,Lazy::List<a> xs) - Take the first n values from a lazy list
- Void traverse(Bool(a, Int) block,Lazy::List<a> xs) - Iteration over lazy lists