Skip to content

Commit 65f96e1

Browse files
committed
sorting: update docs for variadic quots
1 parent d4dda8c commit 65f96e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/sorting/sorting-docs.factor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ $nl
2424
ABOUT: "sequences-sorting"
2525

2626
HELP: sort-with
27-
{ $values { "seq" sequence } { "quot" { $quotation ( obj1 obj2 -- <=> ) } } { "sortedseq" "a new sorted sequence" } }
27+
{ $values { "seq" sequence } { "quot" { $quotation ( ... obj1 obj2 -- ... <=> ) } } { "sortedseq" "a new sorted sequence" } }
2828
{ $description "Sorts the elements of " { $snippet "seq" } " into a new array using a stable sort." }
2929
{ $notes "The algorithm used is the merge sort." } ;
3030

3131
HELP: sort-by
32-
{ $values { "seq" sequence } { "quot" { $quotation ( elt -- key ) } } { "sortedseq" "a new sorted sequence" } }
32+
{ $values { "seq" sequence } { "quot" { $quotation ( ... elt -- ... key ) } } { "sortedseq" "a new sorted sequence" } }
3333
{ $description "Sorts the elements of " { $snippet "seq" } " by applying " { $link compare } " with " { $snippet "quot" } " to each pair of elements in the sequence." } ;
3434

3535
HELP: inv-sort-by
36-
{ $values { "seq" sequence } { "quot" { $quotation ( elt -- key ) } } { "sortedseq" "a new sorted sequence" } }
36+
{ $values { "seq" sequence } { "quot" { $quotation ( ... elt -- ... key ) } } { "sortedseq" "a new sorted sequence" } }
3737
{ $description "Sorts the elements of " { $snippet "seq" } " by applying " { $link compare } " with " { $snippet "quot" } " to each pair of elements in the sequence and inverting the results." } ;
3838

3939
HELP: sort-keys

0 commit comments

Comments
 (0)