Iterator Functions

# Sebastian Malton (8 months ago)

An HTML attachment was scrubbed... URL: esdiscuss/attachments/20180416/92a9a8e1/attachment

# Pranay Prakash (8 months ago)

A buddy of mine has actually been working on implementing array producers/consumers as a library, and I think that's a good solution. i.e. iterators are a nice native addition that can power functionality like this in userland, and library authors can create libraries to make it easier to use in userland.

A quick google search shows me that there are existing libraries that do this (fitzgen.github.io/wu.js) and what my friend is working on implements a collect method which sounds like the start method you mentioned.

Shameless plug: In the meanwhile, I've been working on a library too that, amongst other things, gives you lazy evaluated list transformations. I'll be talking about it at zeit.co/day :)

# Isiah Meadows (8 months ago)

I've got a proposal that kind of attacks this from a different angle:

It targets streams, but it can also work with iterables/iterators. In fact, combining functionality that could be exposed to streams and iterators identically was one of the driving reasons I formulated the proposal how it is.


Isiah Meadows me at isiahmeadows.com

Looking for web consulting? Or a new website? Send me an email and we can get started. www.isiahmeadows.com