(load-file "src/parallel.clj")
(refer 'parallel)
(def f (vec (take 20 (repeatedly #(rand-int 20)))))
f
-> [11 7 10 9 4 1 4 18 15 13 10 7 0 9 16 6 19 11 14 7]
;return value/index pairs of all entries < their index, in parallel
(pvec (par f :filter-index < :map-index vector))
-> [[1 5] [4 6] [7 11] [0 12] [9 13] [6 15] [11 17] [14 18] [7 19]]