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.
1 parent d52aac9 commit 51dc09aCopy full SHA for 51dc09a
PLATFORM/C/LIB/vector.lsts
@@ -80,3 +80,23 @@ let print(v: Vector<x>): Nil = (
80
};
81
print(c"]");
82
);
83
+
84
+let $"=="(a: Vector<t>, b: Vector<t>): U64 = (
85
+ let al = a.length();
86
+ let bl = b.length();
87
+ if al == bl {
88
+ let i = 0_u64;
89
+ let ok = 1_u64;
90
+ while i < al {
91
+ if a[i] != b[i] {
92
+ ok = 0_u64;
93
+ i = al; # break
94
+ } else {
95
+ i = i + 1;
96
+ }
97
+ };
98
+ ok
99
100
+ 0_u64
101
102
+);
0 commit comments