lua-users home
lua-l archive

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


On Tue, 9 Mar 2010 09:53:30 +0200
steve donovan <steve.j.donovan@gmail.com> wrote:

> Penlight brings together a set of generally useful pure Lua modules,
> focusing on input data handling (such as reading configuration files),
> functional programming (such as map, reduce, placeholder
> expressions,etc), and OS path management.  Much of the functionality
> is inspired by the Python standard libraries.

Hello Steve,

I recently had the idea sequence and string find* methods may be designed as higher-order functions (like map, filter, reduce). Eg
   sequence:findall(assertionfunc)
Just a kind of generalisation. This by the way makes findall and filter synonyms! ;-)
What do you think?

Denis
-- 
________________________________

la vita e estrany

spir.wikidot.com