Parallel iteration

From Erights

(Difference between revisions)
Jump to: navigation, search
(new design ssue)
(whoops, category link)
 
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 [[Category:Message iterate/1|iterate/1]] is internal iteration.
+
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==

Latest revision as of 20:59, 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 iterate/1 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.

Personal tools
more tools