Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Dewie
on July 26, 2014
|
parent
|
context
|
favorite
| on:
Elvish – An experimental Unix shell in Go
Some languages have a sort-of default variable name for cases like this, namely "it":
> put 1 2 3 4 5 | filter > $it 2 | map * 2 $it
JadeNB
on July 27, 2014
[–]
As zokier was presumably pointing out, other languages have a
different
sort-of-default variable name, namely `$_` (
http://c2.com/cgi/wiki?DollarUnderscore
). :-)
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
> put 1 2 3 4 5 | filter > $it 2 | map * 2 $it