Skip to content

Commit

Permalink
Merge pull request #145 from ivern/kotlin
Browse files Browse the repository at this point in the history
Implemented hashmap equality (addresses #116, #123)
  • Loading branch information
kanaka committed Jan 22, 2016
2 parents 6523be9 + de0023d commit 542e1d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kotlin/src/mal/types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ class MalHashMap() : MalType {
obj.metadata = meta
return obj
}

override fun equals(other: Any?): Boolean =
(other is MalHashMap) && elements.equals(other.elements)
}

class MalAtom(var value: MalType) : MalType {
Expand Down

0 comments on commit 542e1d3

Please sign in to comment.