[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Penlight 0.8
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 9 Mar 2010 12:08:35 +0200
On Tue, Mar 9, 2010 at 11:49 AM, spir <firstname.lastname@example.org> wrote:
> I recently had the idea sequence and string find* methods may be designed as higher-order functions (like map, filter, reduce). Eg
> Just a kind of generalisation. This by the way makes findall and filter synonyms! ;-)
> What do you think?
There's a question of naming. For strings, string.gmatch is basically
findall, except driven by a pattern. They all return sequences.
Now Penlight already does have higher-order functions on sequences, so
what is the question again, given that they are synonyms?