Jump to content

Julia: Difference between revisions

20 bytes added ,  13 September 2019
no edit summary
No edit summary
No edit summary
Line 141: Line 141:
supertype(Int64)
supertype(Int64)
# Check if a is a subtype of b with <:
# Check if a is a subtype of b with <:
# This is the same symbol for creating a subtype
# This is the same symbol for creating a subtype of an abstract type
# E.g. mutable struct myNum <: Number
# E.g. mutable struct myNum <: Number
Int64 <: Number
Int64 <: Number