diff --git a/src/TrieSet.mo b/src/TrieSet.mo index 6ee399ea..fcc8ab8d 100644 --- a/src/TrieSet.mo +++ b/src/TrieSet.mo @@ -26,13 +26,13 @@ module { /// Put an element into the set. public func put(s : Set, x : T, xh : Hash, eq : (T, T) -> Bool) : Set { - let (s2, _) = Trie.put(s, { key = x; hash = xh }, eq, ()); + let s2 = Trie.put(s, { key = x; hash = xh }, eq, ()).0; s2 }; /// Delete an element from the set. public func delete(s : Set, x : T, xh : Hash, eq : (T, T) -> Bool) : Set { - let (s2, _) = Trie.remove(s, { key = x; hash = xh }, eq); + let s2 = Trie.remove(s, { key = x; hash = xh}, eq).0; s2 };