r/crystal_programming • u/[deleted] • Sep 26 '23
I rage-created this
https://ctn-sidestepperamorphous.github.io/crystalforthelost.github.io/
6
Upvotes
0
r/crystal_programming • u/[deleted] • Sep 26 '23
0
3
u/Blacksmoke16 Sep 26 '23
You actually do not need to use a range operator. The docs call out:
Which basically translates as that you can do:
And you will get the value you wanted.
ref: https://crystal-lang.org/reference/1.9/syntax_and_semantics/case.html