Pattern matching

ruby version 2.7, на сайте с June 08, 2023 19:03
In computer science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern.