similar speedup (5%) on mapRepeated. Refactor the predicate code, same speed, simpler.
try same trick for repeated flat map, doesn't have as much effect. Still reduces GC though, and makes code simpler.
refactor
another shortening
Merge pull request #268 from stucchio/probability_monad

similar speedup (5%) on mapRepeated. Refactor the predicate code, same s...