simonask / snow-deprecated

(ATTENTION WATCHERS: This repository is deprecated. Please watch 'snow' instead.) Snow is a simple, dynamic, and expressive programming language with an emphasis on speed and simplicity. Snow is fully object-oriented, and fully function-oriented at the same time.
http://snow.meta.io/
Other
21 stars 1 forks source link

map_parallel sometimes returns wrong first element #25

Open simonask opened 15 years ago

simonask commented 15 years ago
 snow> @(1, 2, 3).map_parallel { puts(it); it ** it }
 1
 2
 3
 => @(1, 4, 27)

But sometimes the result will be:

 snow> @(1, 2, 3).map_parallel { puts(it); it ** it }
 1
 2
 3
 => @(nil, 4, 27)

Investigate why this happens.