lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

The implementation of reverse suggests that it might be useful to allow iteration transforms to return new state and key values in addition to new iteration functions.


On Jan 2, 2010, at 2:26 PM, Wim Couwenberg wrote:

> Here's a summary of the discussions so far, including example code for
> operators and what not.  See the file "sequence_tests.lua" for some
> examples (and test cases).  The file sequence.lua contains slight
> variations of the discussed functionality *and* an implementation of
> "map" that is actually correct (or so it seems).  :-)
> If anyone wants to take this up any further, feel free to use this code.
> Bye,
> Wim
> <sequence.tgz>