summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 353500a4a..49e6a396d 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2332,6 +2332,16 @@ proc `==`*[I, T](x, y: array[I, T]): bool =
       return
   result = true
 
+proc `==`*[T](x, y: openarray[T]): bool =
+  if x.len != y.len:
+    return false
+
+  for f in low(x)..high(x):
+    if x[f] != y[f]:
+      return false
+
+  result = true
+
 proc `@`*[T](a: openArray[T]): seq[T] =
   ## turns an openarray into a sequence. This is not as efficient as turning
   ## a fixed length array into a sequence as it always copies every element
='oid'>f9737251 ^
0d9c300b ^



10507b68 ^
0d9c300b ^


fc5bfb7d ^
0d9c300b ^








a16a7171 ^


6bad38c2 ^
a16a7171 ^


00170984 ^
0d9c300b ^





6bad38c2 ^
0d9c300b ^





6bad38c2 ^
6b1b035d ^
0d9c300b ^

0d9c300b ^

09e1e761 ^
e49bea4d ^




0d9c300b ^

6bad38c2 ^
0d9c300b ^











6bad38c2 ^
0d9c300b ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101