aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/collection/set/multi.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/collection/set/multi.lux16
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/source/lux/data/collection/set/multi.lux b/stdlib/source/lux/data/collection/set/multi.lux
index 7e4c0f7fe..727cf2d8d 100644
--- a/stdlib/source/lux/data/collection/set/multi.lux
+++ b/stdlib/source/lux/data/collection/set/multi.lux
@@ -55,7 +55,7 @@
(All [a] (-> (Set a) a Nat))
(|> set :representation (dictionary.get elem) (maybe.default 0)))
- (def: #export to-list
+ (def: #export to_list
(All [a] (-> (Set a) (List a)))
(|>> :representation
dictionary.entries
@@ -66,7 +66,7 @@
(template [<name> <compose>]
[(def: #export (<name> parameter subject)
(All [a] (-> (Set a) (Set a) (Set a)))
- (:abstraction (dictionary.merge-with <compose> (:representation parameter) (:representation subject))))]
+ (:abstraction (dictionary.merge_with <compose> (:representation parameter) (:representation subject))))]
[union n.max]
[sum n.+]
@@ -79,7 +79,7 @@
multiplicity)
elem
output))
- (..new (dictionary.key-hash subject))
+ (..new (dictionary.key_hash subject))
(dictionary.entries subject)))
(def: #export (difference parameter subject)
@@ -106,7 +106,7 @@
(let [(^@ set [hash _]) (:representation set)]
(|> set
dictionary.keys
- (//.from-list hash))))
+ (//.from_list hash))))
(structure: #export equivalence
(All [a] (Equivalence (Set a)))
@@ -142,14 +142,14 @@
(All [a] (-> (Set a) Bit))
(|>> ..size (n.= 0)))
-(def: #export (from-list hash subject)
+(def: #export (from_list hash subject)
(All [a] (-> (Hash a) (List a) (Set a)))
(list\fold (..add 1) (..new hash) subject))
-(def: #export (from-set subject)
+(def: #export (from_set subject)
(All [a] (-> (//.Set a) (Set a)))
- (..from-list (//.member-hash subject)
- (//.to-list subject)))
+ (..from_list (//.member_hash subject)
+ (//.to_list subject)))
(def: #export super?
(All [a] (-> (Set a) (Set a) Bit))