Merged
DavisVaughan
changed the title
Draft
Draft case_match() and vec_case_match()case_switch() and vec_case_switch()
DavisVaughan
changed the title
Draft
Draft case_switch() and vec_case_switch()case_match() and vec_case_match()
DavisVaughan
changed the title
Draft
Implement case_match() and vec_case_match()case_match() and vec_case_match()
After thinking about this more, I think this more accurately captures the intention here, and is a more applicable name in other scenarios: - `vec_case_match(needles, haystacks)` makes more sense - `fct_case_match(new_lvl = haystack)` would make more sense since the LHS here is the resulting value, not the thing you switch on - I seem to use "match" very frequently in the docs and the test descriptions, making me think that is the better name