JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
587 stars 72 forks source link

scan with matrix instead of function #28

Closed ngn closed 4 years ago

ngn commented 8 years ago

This is a suggestion for an enhancement. Wouldn't it be nice if a\, where a is a matrix, would behave like {a[x;y]}\

JohnEarnest commented 4 years ago

@ngn reviewing this, I don't think this idea fits in given k5's pack/unpack overloads. Given l (list) and a (atom), l/ and l\ should clearly relate to one another in this case just as over/scan do in other situations, but l\a is already "unpack" and l/l is already "pack".

Feel free to reopen if I'm misunderstanding.