Parallel iteration
From Erights
(Difference between revisions)
(whoops, category link) |
Kevin Reid (Talk | contribs) (new design ssue) |
||
Line 1: | Line 1: | ||
- | There is no nice way to iterate over two collections in parallel, or correspondingly to write a generic "zip", since the existing protocol [[ | + | There is no nice way to iterate over two collections in parallel, or correspondingly to write a generic "zip", since the existing protocol [[Category:Message iterate/1|iterate/1]] is internal iteration. |
==Proposals== | ==Proposals== |
Revision as of 20:58, 24 February 2009
There is no nice way to iterate over two collections in parallel, or correspondingly to write a generic "zip", since the existing protocol is internal iteration.
Proposals
- Give all collections an operation to create EIO InStreams from them. This is basically external iteration. --Kevin Reid 14:58, 24 February 2009 (CST)
- Give all collections an operation to create functional streams (lazy lists) from them. --Kevin Reid 14:58, 24 February 2009 (CST)
Discussion
User:Kevin Reid and User:Markm have discussed this but not in text. XXX Kevin should write up the EIO/Dividoid plan and how the functional-stream option ties into this.