Skip to content

Instantly share code, notes, and snippets.

@Wilfred
Created June 23, 2019 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wilfred/0acde31e55bdb162b127f8964e4bdddc to your computer and use it in GitHub Desktop.
Save Wilfred/0acde31e55bdb162b127f8964e4bdddc to your computer and use it in GitHub Desktop.
MAL equality pharo
= 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