aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/unsafe
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/unsafe/lux/data/collection/array.lux3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/source/unsafe/lux/data/collection/array.lux b/stdlib/source/unsafe/lux/data/collection/array.lux
index cd6bebf63..83b7e5202 100644
--- a/stdlib/source/unsafe/lux/data/collection/array.lux
+++ b/stdlib/source/unsafe/lux/data/collection/array.lux
@@ -95,6 +95,9 @@
.true))))
<index> <array>)]))
+ (template: .public (has? index array)
+ [(.not (..lacks? index array))])
+
(`` (template: .public (item <index> <array>)
[((.: (.All (_ a)
(.-> .Nat (..Array a) a))