2 ms·
https://docs.ruby-lang.org/en/master/syntax/pattern_matching_rdoc.html https://docs.ruby-lang.org/en/master/syntax/pattern_matching... is worth a read to get a
by Lammy 3y ago
https://docs.ruby-lang.org/en/master/syntax/pattern_matching_rdoc.html https://docs.ruby-lang.org/en/master/syntax/pattern_matching... is worth a read to get a better understanding of the pattern matching capabilities than is conveyed in the various Ruby version announcements that added and expanded it. I'm a big fan of this syntax and use it constantly in my codebase. I also love numbered parameters, endless methods, and Ractors ;)