< Rebol Programming
USAGE:
OUTSIDE? p1 p2
DESCRIPTION:
TRUE if either X and Y of the second pair are greater than the first.
OUTSIDE? is a function value.
ARGUMENTS:
- p1 -- (Type: pair)
- p2 -- (Type: pair)
SOURCE CODE
outside?: func [
{TRUE if either X and Y of the second pair are greater than the first.}
p1 [pair!]
p2 [pair!]
][
found? any [p2/x > p1/x p2/y > p1/y]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.