glycerine / zygomys

Zygo is a Lisp interpreter written in 100% Go. Central use case: dynamically compose Go struct trees in a zygo script, then invoke compiled Go functions on those trees. Makes Go reflection easy.
https://github.com/glycerine/zygomys/wiki
BSD 2-Clause "Simplified" License
1.71k stars 81 forks source link

fixed foldl #25

Closed sug0 closed 6 years ago

glycerine commented 6 years ago

This is not a fix, but rather introduces a bug instead. If you would have bothered to run the test, you would have discovered that on your own.

sug0 commented 6 years ago

fair enough but that's not the proper foldl behavior if you want to be consistent with the definition; foldl is this: (((a - b) - c) - d)