isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

F on arity 1 functions #195

Closed isaacg1 closed 8 years ago

isaacg1 commented 8 years ago

Currently, F does nothing on . A proposal for

isaacg1 commented 8 years ago

what it could do was to apply the given function to the input a given number of times.

Maltysen commented 8 years ago

How about having the parser detect that the op is arity one and then taking an additional argument. Like for our motivating example, it would be .!F3 2 would work because the parser would make .!F consume 2 args.

isaacg1 commented 8 years ago

Implemented.