[nim-dev] Parallel loop iterator

  • From: "Garry_Galler" <dmarc-noreply-outsider@xxxxxxxxxxxxx> (Redacted sender "ggaller" for DMARC)
  • To: nim-dev@xxxxxxxxxxxxx
  • Date: Thu, 8 Sep 2016 16:32:06 +0000

`||` - parallel loop iterator. Same as .. but the loop may run in parallel.

Can anybody explain what kind of parallelism is here meant? And how is it 
supposed to work? 
In the example below, it works in series.
```nim
import strutils

var x=0
for i in 1||1000:
  inc x
  echo "[$1]=$2" % [$i,$x]
``` 

Other related posts: