isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
262 stars 57 forks source link

Fixed fold #90

Closed Maltysen closed 9 years ago

Maltysen commented 9 years ago

After the introduction of reduce2, we used that for the fold operator. However, this broke fold, because we forgot to update the name and the indicies for the variables in it. I fixed it.

P.S. This is really fragile, as we just saw. We need a better way, which i'll be working on, but here is the quick fix.

isaacg1 commented 9 years ago

Thanks for the fix, and I agree this could be much better.