Julia: Difference between revisions

142 bytes added ,  13 September 2019
no edit summary
No edit summary
No edit summary
Line 140: Line 140:
# Get the super type
# Get the super type
supertype(Int64)
supertype(Int64)
# Check if a is a subtype of b with <:
# This is the same symbol for creating a subtype
# E.g. mutable struct myNum <: Number
Int64 <: Number
</pre>
</pre>