lua-users home
lua-l archive

Re: [ANN] Penlight 0.7 Beta

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


Hi Steve,
seq.map and seq.reduce take an operator as their first argument, and a sequence as their second. seq.filter takes a sequence as its first argument and an operator as its second. Is there a reason for the inconsistency? I see that you can chain filter, but this implies that you can't chain map? Reading further through the docs, you do chain map - presumably the method map has a different argument order than the function map?
Cheers,
Geoff
On 13/05/2009, at 2:24 AM, steve donovan wrote:
Hi guys,
http://penlight.luaforge.net/
...
There are a number of new things. Sequence wrappers have been added as
recently discussed:
http://lua-users.org/wiki/SequenceAdapters
Can now write things like this one liner:
seq(s):last():filter('<'):copy()

AltStyle によって変換されたページ (->オリジナル) /