aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/collection/set.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/collection/set.lux16
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/source/lux/data/collection/set.lux b/stdlib/source/lux/data/collection/set.lux
index b47c5761d..67e241b78 100644
--- a/stdlib/source/lux/data/collection/set.lux
+++ b/stdlib/source/lux/data/collection/set.lux
@@ -15,9 +15,9 @@
(type: #export (Set a)
(Dictionary a Any))
-(def: #export member-hash
+(def: #export member_hash
(All [a] (-> (Set a) (Hash a)))
- //.key-hash)
+ //.key_hash)
(def: #export new
(All [a] (-> (Hash a) (Set a)))
@@ -39,7 +39,7 @@
(All [a] (-> (Set a) a Bit))
//.key?)
-(def: #export to-list
+(def: #export to_list
(All [a] (-> (Set a) (List a)))
//.keys)
@@ -49,7 +49,7 @@
(def: #export (difference sub base)
(All [a] (-> (Set a) (Set a) (Set a)))
- (list\fold ..remove base (..to-list sub)))
+ (list\fold ..remove base (..to_list sub)))
(def: #export (intersection filter base)
(All [a] (-> (Set a) (Set a) (Set a)))
@@ -63,7 +63,7 @@
(and (n.= (..size reference)
(..size sample))
(list.every? (..member? reference)
- (..to-list sample)))))
+ (..to_list sample)))))
(structure: #export hash
(All [a] (Hash (Set a)))
@@ -73,7 +73,7 @@
(def: (hash (^@ set [hash _]))
(list\fold (function (_ elem acc) (n.+ (\ hash hash elem) acc))
0
- (..to-list set))))
+ (..to_list set))))
(structure: #export (monoid hash)
(All [a] (-> (Hash a) (Monoid (Set a))))
@@ -85,13 +85,13 @@
(All [a] (-> (Set a) Bit))
(|>> ..size (n.= 0)))
-(def: #export (from-list hash elements)
+(def: #export (from_list hash elements)
(All [a] (-> (Hash a) (List a) (Set a)))
(list\fold ..add (..new hash) elements))
(def: #export (sub? super sub)
(All [a] (-> (Set a) (Set a) Bit))
- (list.every? (..member? super) (..to-list sub)))
+ (list.every? (..member? super) (..to_list sub)))
(def: #export (super? sub super)
(All [a] (-> (Set a) (Set a) Bit))