I’ve refactored this to use `when` statements inst...
# getting-started
s
I’ve refactored this to use
when
statements instead of nested
if
statements as recommended by the compiler- but I’m not seeing how to DRY this further (even though I can easily see the repeated code 😅):