aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/collection/sequence.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/collection/sequence.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/lux/data/collection/sequence.lux b/stdlib/source/lux/data/collection/sequence.lux
index dc8f4a802..0a2350324 100644
--- a/stdlib/source/lux/data/collection/sequence.lux
+++ b/stdlib/source/lux/data/collection/sequence.lux
@@ -10,7 +10,7 @@
[code]
["s" syntax (#+ syntax: Syntax)]]
[data
- bool
+ bit
[collection [list ("list/" Monad<List>)]]]])
## [Types]
@@ -91,8 +91,8 @@
[(#.Cons [x tail]) next])
[(list) xs])))]
- [take-while drop-while split-while (-> a Bool) (pred x) pred]
- [take drop split Nat (n/> +0 pred) (dec pred)]
+ [take-while drop-while split-while (-> a Bit) (pred x) pred]
+ [take drop split Nat (n/> +0 pred) (dec pred)]
)
(def: #export (unfold step init)
@@ -103,7 +103,7 @@
(pending [x (unfold step next)])))
(def: #export (filter p xs)
- (All [a] (-> (-> a Bool) (Sequence a) (Sequence a)))
+ (All [a] (-> (-> a Bit) (Sequence a) (Sequence a)))
(let [[x xs'] (continuation.run xs)]
(if (p x)
(pending [x (filter p xs')])
@@ -115,7 +115,7 @@
The left side contains all entries for which the predicate is true.
The right side contains all entries for which the predicate is false."}
- (All [a] (-> (-> a Bool) (Sequence a) [(Sequence a) (Sequence a)]))
+ (All [a] (-> (-> a Bit) (Sequence a) [(Sequence a) (Sequence a)]))
[(filter p xs) (filter (complement p) xs)])
## [Structures]