2reduce help typo
parent
3ffed564bc
commit
214fb01bd4
|
@ -65,10 +65,15 @@ HELP: 2each
|
|||
{ $notes "If one sequence is shorter than the other, than only the prefix having the length of the minimum of the two is examined." } ;
|
||||
|
||||
HELP: 2reduce
|
||||
{ $values { "seq1" "a sequence" } { "seq2" "a sequence" } { "identity" "an object" } { "quot" "a quotation with stack effect " { $snippet "( prev elt1 elt2 -- next )" } } { "result" "the final result" } }
|
||||
{ $values { "seq1" "a sequence" }
|
||||
{ "seq2" "a sequence" }
|
||||
{ "identity" "an object" }
|
||||
{ "quot" "a quotation with stack effect "
|
||||
{ $snippet "( prev elt1 elt2 -- next )" } }
|
||||
{ "result" "the final result" } }
|
||||
{ $description "Combines successive pairs of elements from the two sequences using a ternary operation. The first input value at each iteration except the first one is the result of the previous iteration. The first input value at the first iteration is " { $snippet "identity" } "." }
|
||||
{ $examples "The " { $link v. } " word provides a particularly elegant implementation of the dot product." }
|
||||
{ $notes "If one sequence is shorter than the other, than only the prefix having the length of the minimum of the two is examined." } ;
|
||||
{ $notes "If one sequence is shorter than the other, then only the prefix having the length of the minimum of the two is examined." } ;
|
||||
|
||||
HELP: 2map
|
||||
{ $values { "seq1" "a sequence" } { "seq2" "a sequence" } { "quot" "a quotation with stack effect " { $snippet "( elt1 elt2 -- new )" } } { "newseq" "a new sequence" } }
|
||||
|
|
Loading…
Reference in New Issue