generator libraries
Probably not the one you’re after but I created aaronpowell/linq-in-javascript which is a JS Generator implementation of .NET’s LINQ API. It has take
implemented (aaronpowell/linq-in-javascript/blob/master/src/linq.js#L325-L354 and tests aaronpowell/linq-in-javascript/blob/master/tests/take.js)
From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Mark Volkmann Sent: Sunday, 4 January 2015 1:19 PM To: es-discuss at mozilla.org Subject: generator libraries
Many months ago I ran across a couple of libraries containing utility functions for working with generators. I recall one was a "take" function that was used to take only the first n values from a a given generator. I'm having trouble locating those libraries now. I think one of them was written by a TC39 member. Can anyone point me to a library like that?
I wrote rbuckton/queryjs
Sent from my Windows Phone
Actually I wrote pretty much the similar one with less functions (since I haven't need to use them yet), but with different name (I use Stream, since my idea are simply from Java 8's Stream AI) gist.githubusercontent.com/nbdd0121/11158010032648c32e6f/raw/0bcd6c77f262f2bddc56d2f4ebd74aa8fd2d3267/Stream.js
From: rbuckton at chronicles.org To: me at aaron-powell.com; r.mark.volkmann at gmail.com; es-discuss at mozilla.org Subject: RE: generator libraries Date: Sun, 4 Jan 2015 06:08:51 +0000
I wrote rbuckton/queryjs
Many months ago I ran across a couple of libraries containing utility functions for working with generators. I recall one was a "take" function that was used to take only the first n values from a a given generator. I'm having trouble locating those libraries now. I think one of them was written by a TC39 member. Can anyone point me to a library like that?