With `fusion/matching` (<https://nim-lang.github.io/fusion/src/fusion/matching.html>) you can `case` on tuples, so it becomes (`in <set>` to match multiple kinds, `_` for placeholder, and just `k1First` to match pattern directly. type Kind1 = enum k1First k1Second k1Third Kidn2 = enum k2First k2Second k2Third case (k1First, k2Second): of (in {k1First, k1Second}, _): echo "123" Run
- Any way to avoid nested case statements for proc taking two ... hugogranstrom
- Any way to avoid nested case statements for proc taking... haxscramper_
- Any way to avoid nested case statements for proc ta... hugogranstrom
- Any way to avoid nested case statements for pro... mratsim
- Any way to avoid nested case statements for... hugogranstrom
- Any way to avoid nested case statement... doofenstein
- Any way to avoid nested case state... hugogranstrom
- Any way to avoid nested case s... doofenstein
- Any way to avoid nested case s... hugogranstrom
- Any way to avoid nested case s... xigoi
- Any way to avoid nested case s... hugogranstrom
- Any way to avoid nested case s... xigoi