Ternary-based pattern matching in JS
Ternary-based pattern matching in JS
blog.kaki87.net
Ternary-based pattern matching in JS
Folks are jealous of other programming languages having this kind of pattern matching abilities : fun compareNumbers( a: Int, b: Int ) = when { a > b -> "A is greater than B" b > a ->...