robpike / ivy

ivy, an APL-like calculator
Other
1.33k stars 103 forks source link

ivy: fix matrix index of matrix #112

Closed rsc closed 2 years ago

rsc commented 2 years ago

The right-to-left evaluation order for indexes was causing the accumulation of the shape to end up reversed. Fix that by doing an additional reverse after the loop.

Fixes #111.