mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 07:12:31 +03:00
Remove useless lib
In fact, if you donot import InteractiveUtils, you still can use the subtype and supertype function
This commit is contained in:
parent
b0bbe39b46
commit
2a7bf762c6
@ -586,7 +586,6 @@ sherekhan = typeof(tigger)(5.6, "fire") # => Tiger(5.6,"fire")
|
||||
abstract type Cat end # just a name and point in the type hierarchy
|
||||
|
||||
# Abstract types cannot be instantiated, but can have subtypes.
|
||||
using InteractiveUtils # defines the subtype and supertype function
|
||||
# For example, Number is an abstract type
|
||||
subtypes(Number) # => 2-element Array{Any,1}:
|
||||
# => Complex
|
||||
|
Loading…
Reference in New Issue
Block a user