]> gitweb.factorcode.org Git - factor.git/commitdiff
sorting.extras: add some docs.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 2 Jun 2014 21:27:50 +0000 (14:27 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 2 Jun 2014 21:27:50 +0000 (14:27 -0700)
extra/sorting/extras/extras-docs.factor [new file with mode: 0644]

diff --git a/extra/sorting/extras/extras-docs.factor b/extra/sorting/extras/extras-docs.factor
new file mode 100644 (file)
index 0000000..9b54e02
--- /dev/null
@@ -0,0 +1,6 @@
+USING: help.markup help.syntax sequences ;
+IN: sorting.extras
+
+HELP: map-sort
+{ $values { "seq" sequence } { "quot" { $quotation ( ... elt -- ... key ) } } { "sortedseq" "a new sorted sequence" } }
+{ $description "Sort the elements of " { $snippet "seq" } " a sequence using " { $snippet "quot" } " as a key function." } ;