We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73d34ad + 0c2eee4 commit 8940945Copy full SHA for 8940945
.github/workflows/ci.yml
@@ -9,7 +9,7 @@ on:
9
# Remember to update me in package-set.yml as well
10
env:
11
vessel_version: "v0.6.3"
12
- moc_version: "0.6.30"
+ moc_version: "0.7.0"
13
14
jobs:
15
tests:
.github/workflows/package-set.yml
@@ -8,7 +8,7 @@ on:
8
verify:
src/TrieSet.mo
@@ -26,14 +26,18 @@ module {
26
27
/// Put an element into the set.
28
public func put<T>(s : Set<T>, x : T, xh : Hash, eq : (T, T) -> Bool) : Set<T> {
29
- let (s2, _) = Trie.put<T,()>(s, { key = x; hash = xh }, eq, ());
30
- s2
+ // let (s2, _) = Trie.put<T,()>(s, { key = x; hash = xh }, eq, ());
+ // s2
31
+ s := Trie.put<T,()>(s, { key = x; hash = xh x}, eq, ()).0;
32
+ s
33
};
34
35
/// Delete an element from the set.
36
public func delete<T>(s : Set<T>, x : T, xh : Hash, eq : (T, T) -> Bool) : Set<T> {
- let (s2, _) = Trie.remove<T, ()>(s, { key = x; hash = xh }, eq);
37
+ // let (s2, _) = Trie.remove<T, ()>(s, { key = x; hash = xh }, eq);
38
39
+ s := Trie.remove<T, ()>(s, { key = x; hash = xh}, eq).0;
40
41
42
43
/// Test if two sets are equal.
0 commit comments