EDIT: now runs in parallel and is faster than the Rust single-threaded version, and on par with the parallel Rust version, but only ~35 lines.
[1] http://lpaste.net/105456
[2] http://www.reddit.com/r/haskell/comments/27tcvz/knearest_nei...
EDIT: now runs in parallel and is faster than the Rust single-threaded version, and on par with the parallel Rust version, but only ~35 lines.
[1] http://lpaste.net/105456
[2] http://www.reddit.com/r/haskell/comments/27tcvz/knearest_nei...