JohnEarnest / ok

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

Implement # as filter #33

Closed refi64 closed 8 years ago

refi64 commented 8 years ago

I didn't realize it worked until someone mentioned it on the mailing list. (1=)#1 2 3 1 should return 1 1. This form (function;list) of # is basically {y@&x'y}.

JohnEarnest commented 8 years ago

Nice find. It was fairly straightforward to implement, but required some tweaks to the parser. Please reopen this issue if it breaks for any reasonable cases.