3 ms·
> Can you do either of those in other popular languages with pattern matching? Ruby supports matching against a local variable by pinning the variable (using a
by pansa2 6y ago
> Can you do either of those in other popular languages with pattern matching?
Ruby supports matching against a local variable by pinning the variable (using a ^ prefix).