jliszka / probability-monad

Apache License 2.0
263 stars 38 forks source link

Make the alias method tail recursive to avoid stack overflow #4

Closed jcazevedo closed 10 years ago

jcazevedo commented 10 years ago

This PR makes the alias method tail recursive, in order to avoid throwing a java.lang.StackOverflowError exception on large collections.

jliszka commented 10 years ago

Thanks!