@hackage mps0.0.0.1.1

message passing style helpers

Message Passing Style Haskell Toolkit

Example

OO (duck) Syntax

euler_1 = ( [3,6..999] ++ [5,10..999] ).unique.sum

Parallel map reduce

p_eval' xs                  = xs.pseq( xs.reduce par )
p_reduce' op xs             = xs.p_eval'.reduce op

p_map_reduce_to n m r xs    = xs.split_to(n).map(m).p_reduce'(r)
p_map_reduce m r xs         = p_map_reduce_to 16 m r xs