Dominic·FollowJan 24, 2022--ListenShareThis is the same as rust's match statement, I quite like it actually 😅 in rust you can also assign the result to an lvalue and it looks cleaner than a nested ternary or if/else if/else