Expression icon indicating copy to clipboard operation
Expression copied to clipboard

Feature request: parallel sequence

Open kavinvin opened this issue 2 years ago • 1 comments

It'd be nice to have parallel sequence to represent parallel execution container for cpu- and/or io-bound function

ys = xs.map(compute)

Example syntax I can suggest is from Scala

ys = xs.par.map(compute)

where xs.par returns ParSequence https://docs.scala-lang.org/overviews/parallel-collections/overview.html

kavinvin avatar Mar 16 '22 08:03 kavinvin

This is a great suggestion.

dbrattli avatar Apr 06 '22 09:04 dbrattli