When I think of &#x27;pattern matching&#x27; I think of some complex idea like brain-level parsing of text to an AST via matching of syntax patterns. But what OCaml pattern-matching really is is just the equivalent of a C# switch statement, or if&#x2F;else-if statements.