Created
June 23, 2019 15:15
-
-
Save Wilfred/0acde31e55bdb162b127f8964e4bdddc to your computer and use it in GitHub Desktop.
MAL equality pharo
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
= anObject | |
self isIterable & anObject isIterable | |
ifTrue: [ ^ value = anObject value ]. | |
self class = anObject class | |
ifFalse: [ ^ false ]. | |
^ value = anObject value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment