Jan. 24, 2018
5:28 p.m.
On Mon, Jan 22, 2018 at 11:26 AM, Steffen Märcker <merkste@web.de> wrote:
Hi!
this is straightforward with Transducers, e.g.,
(Take n: 5) <~ #(1 2 3 4 5 6 7 8).
or
#(1 2 3 4 5 6 7 8) transduce take: 5.
The different primitives like take, drop, map, filter, etc. are composable and do not generate intermediate representations. The bad news are, that the Pharo port is incomplete and I won't have the time until April to finish it.
oh there is not stress. What I would like to see is - what is the API in terms of vocabulary (ie drop the same as reject) - can we reexpress some of our iterators? what is the cost? Stef