DennisMitchell / jellylanguage

Jelly is a recreational programming language inspired by J.
MIT License
860 stars 47 forks source link

Make the default return value when reducing empty lists be an empty list. #85

Open jjallan opened 5 years ago

jjallan commented 5 years ago

When reducing an empty list with no initial values specified return an empty list rather than raising a TypeError ("reduce() of empty sequence with no initial value"). I believe this is a nicer default behaviour for Jelly to have.