lfrom-by ( n quot: ( n -- o ) -- result )
Lazy lists ยป Combinators for manipulating lazy lists

Prev:lwhile ( list quot: ( elt -- ? ) -- result )
Next:lcartesian-map ( list quot: ( elt1 elt2 -- newelt ) -- result )


Vocabulary
lists.lazy

Inputs
nan integer
quota quotation with stack effect ( n -- o )


Outputs
resulta lazy list of integers


Word description
Return an infinite lazy list of values starting from n, with each successive value being the result of applying quot to the previous value.

See also
leach, foldl, lmap-lazy, ltake, lfilter, lappend-lazy, lfrom, lconcat, lcartesian-product, lcartesian-product*, lcartesian-map, lcartesian-map*, lmerge, lwhile, luntil

Definition


: lfrom-by ( n quot: ( n -- o ) -- result ) lazy-from-by boa
; inline