]> gitweb.factorcode.org Git - factor.git/commitdiff
extra: fix sets rename
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 12 Aug 2015 18:58:20 +0000 (13:58 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 12 Aug 2015 18:58:20 +0000 (13:58 -0500)
extra/sets/extras/extras-docs.factor
extra/yaml/yaml-docs.factor

index 174f91f44bd6496acf5be30e8303fdb66399c664..5e931cbc75626a79c69cf1155c6df225b258e7a5 100644 (file)
@@ -6,7 +6,7 @@ IN: sets.extras
 HELP: setwise-xor
 { $values
     { "seq1" sequence } { "seq2" sequence }
-    { "set" set }
+    { "set" unordered-set }
 }
 { $description "Converts the sequences to sets and takes the element-wise " { $link xor } ". Outputs elements that are in either set but not in both." }
 { $example
@@ -17,11 +17,11 @@ HELP: setwise-xor
 { $notes "Known as setxor1d in numpy." } ;
 
 HELP: symmetric-diff
-{ $values { "set1" set } { "set2" set } { "set" set } }
+{ $values { "set1" unordered-set } { "set2" unordered-set } { "set" unordered-set } }
 { $description "Find the symmetric difference of two sets.  Outputs a set containing elements that in either set but not in both." } ;
 
 HELP: proper-subset?
-{ $values { "set1" set } { "set2" set } { "?" boolean } }
+{ $values { "set1" unordered-set } { "set2" unordered-set } { "?" boolean } }
 { $description "Find whether " { $snippet "set1" } " is a proper subset of " { $snippet "set2" } ".  Returns true if " { $snippet "set1" } " is a subset of " { $snippet "set2" } " but " { $snippet "set2" } " is not a subset of " { $snippet "set1" } "." } ;
 
 ARTICLE: "sets.extras" "Extra sets words"
index 9bbd8286d01f66e17ec6e80628bcce95eb22a186..75dcaa5364291acb86d36a78747ce50275175940 100644 (file)
@@ -125,7 +125,7 @@ ARTICLE: "yaml-mapping" "Mapping between Factor and YAML types"
 "The following Factor types are not preserved, unless another type has precedence:"
 { $list
   { { $link assoc } " -> !!map -> " { $link hashtable } }
-  { { $link set } " -> !!set -> " { $link hash-set } }
+  { { $link unordered-set } " -> !!set -> " { $link hash-set } }
   { { $link sequence } " -> !!seq -> " { $link array } }
 }
 "Examples of type precedence which preserves type: " { $link byte-array } " over " { $link sequence } "."