REBOL Programming/outside?

USAGE:Edit

OUTSIDE? p1 p2 

DESCRIPTION:Edit

TRUE if either X and Y of the second pair are greater than the first.

OUTSIDE? is a function value.

ARGUMENTS:Edit

  • p1 -- (Type: pair)
  • p2 -- (Type: pair)

SOURCE CODEEdit

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]
]
Last modified on 31 October 2012, at 16:02