January 2020
Intermediate to advanced
532 pages
13h 31m
English
The isa operator can be used to determine whether a value is a subtype of a type. For example, look at the following code:

Let me explain each of these results:
The isa operator could be useful for checking types in a function that accepts generic type arguments. For example, if the function can only work with Real numbers, then it may throw an error when a Complex value is passed by ...
Read now
Unlock full access