On Thu, Aug 4, 2016 at 10:01 AM, Henry Rich <henryhr...@gmail.com> wrote:
> I don't understand the 'lazily produce the arguments' bit. Please amplify. > > Let's say you wanted to double all the numbers less than 5 You could do +: i.5 Or next=: 3 : ' if. y < 5 do. y + 1 else. a: end. ' ] F. +: `next If the input array was large, it might be better to lazily produce it. This could also support the termination condition if the lazy approach stopped producing inputs > I also don't understand 'streaming data'. Please amplify. > > > "Streaming data" would be something like operating on a file line-by-line instead of reading in the entire file I vaguely recalled reading some mentions of "streams" not being well-supported in J. Here are some links for some quick searches: http://code.jsoftware.com/wiki/NYCJUG/2009-09-08/ArrayHabitsHarmful http://www.jsoftware.com/pipermail/programming/2007-April/006091.html Perhaps a primitive that helped optimize working on chunks, blocks, characters within a JSON file could help improve the performance of a JSON parser. Nothing real concrete here, but just tossing ideas into the ring to see if they stick > > It would be in keeping with the language for gerund u to be a Cyclic > Gerund. > > > Hope this helps explain the ideas. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm