lua-users home
lua-l archive

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

Hi Steve, 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?


On 13/05/2009, at 2:24 AM, steve donovan wrote:

Hi guys,
There are a number of new things. Sequence wrappers have been added as
recently discussed:

Can now write things like this one liner: