charly-lang / charly

🐈 The Charly Programming Language | Written by @KCreate
https://charly-lang.github.io/charly/
MIT License
199 stars 10 forks source link

Quick access to method arguments #123

Closed KCreate closed 7 years ago

KCreate commented 7 years ago

Each argument is also available via a shorthand format such as $0, $1 and so on.

[1, 2, 3].map(->$0 ** 2) # => [1, 4, 9]
KCreate commented 7 years ago

Implemented in #127