[REBOL] Re: PAIR! and greater-than less-than
From: carl:cybercraft at: 27-Feb-2002 7:55
On 26-Feb-02, Cyphre wrote:
> Hi Charles, Carl and all,
> Just wanted to mention two mezzanine fuctions 'inside? and 'outside?
> which you could find sometimes very usefull.
Cool. I could've used those a while back. Now why didn't they get a
mention in the pair discussions I mentioned? (Though I guess I
could've missed it:)
>>> ? inside?
> USAGE:
> INSIDE? p1 p2
> DESCRIPTION:
> TRUE if both X and Y of the second pair are less than the
> first.
> INSIDE? is a function value.
> ARGUMENTS:
> p1 -- (Type: pair)
> p2 -- (Type: pair)
>>> ? outside?
> 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)
>>>
> regards,
> Cyphre
> ----- Original Message -----
> From: "Carl Read" <[carl--cybercraft--co--nz]>
> To: <[rebol-list--rebol--com]>
> Sent: Tuesday, February 26, 2002 8:22 AM
> Subject: [REBOL] Re: PAIR! and greater-than less-than
>> On 26-Feb-02, alan parman wrote:
>>> What's up with the following /CORE console output?
>>>>> 10x20 > 10x25
>>> ** Script Error: Expected one of: pair! - not: pair!
>>> ** Where: halt-view
>>> ** Near: 10x20 > 10x25
>> You can't compare pairs for greater-than or lesser-than in REBOL.
>> The
>> resons why were discussed exaustively on the list recently. If
>> you're looking for a long read, search for "pair" in the escribe
>> archive here...
>> http://www.escribe.com/internet/rebol/
>> and choose the "Tuples - Was Pair! thread" and "Pair comparison
>> (was:
>> native? :==)" threads.
>>>>> minimum 10x20 5x25
>>> == 5x20
>> That's expected behaviour, and useful too. Gregg Irwin's written a
>> good article on pairs here...
>> http://www.rebolforces.com/articles/pairs1.html
>> which explains it a lot better than I could. Well worth a read.
>> --
>> Carl Read
>> --
>> To unsubscribe from this list, please send an email to
>> [rebol-request--rebol--com] with "unsubscribe" in the
>> subject, without the quotes.
--
Carl Read