ashinn / chibi-scheme

Official chibi-scheme repository
Other
1.23k stars 141 forks source link

Add and test array-fold-{left|right}, remove array-fold{l|r} #980

Closed gambiteer closed 6 months ago

gambiteer commented 6 months ago

The commit history is a bit ragged, sorry.

gambiteer commented 6 months ago

I have to rethink how this works, I apologize for the noise, your tests don't pass.

ashinn commented 6 months ago

The tests are from SRFI 179. They fail because they're fold-left on matrix multiplication which is not commutative. Just updating the tests is fine.