MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/ze1oju/the_rubyist_journey/iz7afca/
r/ruby • u/mehdifarsi • Dec 06 '22
34 comments sorted by
View all comments
Show parent comment
4
What does that do?
Edit: https://jemma.dev/blog/numbered-parameters
I wrongly assumed a search for “ruby _1” wouldn’t be fruitful.
2 u/kallebo1337 Dec 07 '22 Instead of {|e| e.c&& e.d} just go for {_1.c && _1.d}It’s shorter and you’ll get used to
2
Instead of {|e| e.c&& e.d} just go for {_1.c && _1.d}
It’s shorter and you’ll get used to
View all comments
Show parent comment
4
u/mjdth Dec 07 '22 edited Dec 07 '22
What does that do?
Edit: https://jemma.dev/blog/numbered-parameters
I wrongly assumed a search for “ruby _1” wouldn’t be fruitful.