Re: [Factor-talk] A word similar to Haskell's 'iterate'

2011-12-06 Thread Samuel Tardieu
2011/12/6 missingfaktor 

> Does Factor have a word similar to Haskell's 'iterate' function?


You may be looking for lfrom-by in the lists.lazy vocabulary.

Note that the documentation is wrong (I'll submit a patch), the quotation
has effect ( a -- b ), not ( -- n ).

Usage :

1 [ 2 * ] lfrom-by
5 swap ltake list>array
=> { 1 2 4 8 16 }
--
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] A word similar to Haskell's 'iterate'

2011-12-06 Thread missingfaktor
Does Factor have a word similar to Haskell's 'iterate' function?

-- 
Cheers,
missingfaktor .

When you stand for what you believe in, you can change the world.
--
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk