This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import LinearAlgebra.det |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| abstract type Person end | |
| abstract type Tourist <:Person end | |
| abstract type Deer end | |
| encounter(a::Deer, b::Tourist) = "bows politely" | |
| encounter(a::Tourist, b::Deer) = "feeds" | |
| encounter(a::Person, b::Deer) = "beckons" | |
| encounter(a::Deer, b::Person) = "ignores" | |
| encounter(a::Tourist, b::Deer, foo::String) = "feeds deer $foo" |
NewerOlder