Skip to content

Commit

Permalink
kernel: update docs for either?
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Nov 8, 2024
1 parent 4a32b28 commit 952ca84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/kernel/kernel-docs.factor
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ HELP: both?
} ;

HELP: either?
{ $values { "x" object } { "y" object } { "quot" { $quotation ( ... obj -- ... ? ) } } { "?" boolean } }
{ $description "Tests if the quotation yields a true value when applied to either " { $snippet "x" } " or " { $snippet "y" } "." }
{ $values { "x" object } { "y" object } { "quot" { $quotation ( ... obj -- ... ? ) } } { "?" "a generalized boolean" } }
{ $description "Applies the quotation to both " { $snippet "x" } " and " { $snippet "y" } ", and then returns the first result that is not " { $link f } "." }
{ $examples
{ $example "USING: kernel math prettyprint ;" "3 6 [ odd? ] either? ." "t" }
{ $example "USING: kernel math prettyprint ;" "5 7 [ even? ] either? ." "f" }
Expand Down

0 comments on commit 952ca84

Please sign in to comment.