isaacg1 / pyth

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

Added .+ [deltas] #218

Closed Steven-Hewitt closed 7 years ago

Steven-Hewitt commented 7 years ago

.+ Deltas. Returns the differences between consecutive elements of A.

Maltysen commented 7 years ago

This seems good, but it may be better to add a met-op instead that one will be able to use for different operators.

Steven-Hewitt commented 7 years ago

Would you recommend that I keep it as .+ when switching to a met-op? All the current met-ops (if I remember correctly) are single-character commands.

Maltysen commented 7 years ago

I don't think anything prevents meta-ops from being double chars, but it might not be worth it in terms of golfiness if we can’t find a single char one.

Steven-Hewitt commented 7 years ago

The only single-char operation I can find without going into extended ASCII is the literal tab character, which would be a pain to insert into the online interpreter (or the REPL, for that matter.)