This is very true. Match statements are much more powerful that switch statements in any other language.
For instance:
- matching objects very specifically
- if conditions within case statements
- pulling variables from inside of the object directly.
This is very true. Match statements are much more powerful that switch statements in any other language.
For instance:
_
can also be used in the python interactive terminal to mean ‘last return value’Ie:
> 'string' 'string' > a = _ > print(a) string