Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29642
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: library for fast map/filter/reduce |
| Date | 2016-02-20 13:59 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <87lh6f32k1.fsf@bsb.me.uk> (permalink) |
| References | <9f70cd71-da91-478c-ac97-392fcb7c7a63@googlegroups.com> <8e0eb84d-66c8-41da-847b-759f634bc4cd@googlegroups.com> <286742ed-e3f3-466f-9b4d-b9deb5bb4442@googlegroups.com> <f9863dd4-3361-4fc6-ab37-808b4222887a@googlegroups.com> <56e25c80-9c8e-4113-a6ad-07d7c321b5db@googlegroups.com> |
glathoud <glathoud@yahoo.fr> writes: <snip> > Side note about lambdas: it would be nice to be able to write some > without variables at all. OCaml has an interesting notation where one > can wrap an operator + into a function (+) Haskell has that too, and it came (at least in the case of Haskell), from Miranda designed by David Turner. He may have got it from a 1973 dissertation by Wile and (like so many such things) it probably has even older roots in mathematical logic. Haskell (and Miranda) can go both ways. (+) is a function make from an operator, but given a function like mod, you can make an operator from it using `...`: 95 `mod` 10 is 5. And you can combine the two. Since operators permit sections using either operand it can be handy to write (`mod` 10) for the "modulo 10" function. <snip> -- Ben.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
library for fast map/filter/reduce glathoud <glathoud@yahoo.fr> - 2016-02-16 22:24 -0800
Re: library for fast map/filter/reduce Scott Sauyet <scott.sauyet@gmail.com> - 2016-02-18 20:01 -0800
Re: library for fast map/filter/reduce glathoud <glathoud@yahoo.fr> - 2016-02-19 02:10 -0800
Re: library for fast map/filter/reduce Scott Sauyet <scott.sauyet@gmail.com> - 2016-02-19 08:44 -0800
Re: library for fast map/filter/reduce glathoud <glathoud@yahoo.fr> - 2016-02-20 04:03 -0800
Re: library for fast map/filter/reduce Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-02-20 13:59 +0000
Re: library for fast map/filter/reduce glathoud <glathoud@yahoo.fr> - 2016-02-23 21:53 -0800
Re: library for fast map/filter/reduce "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-02-23 19:22 -0800
Re: library for fast map/filter/reduce glathoud <glathoud@yahoo.fr> - 2016-02-23 22:11 -0800
csiph-web