Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: sorting a serie ....

From: greggirwin:mindspring at: 18-Jun-2003 13:15

Hi Arnaud, A> I try to find the minimun of a serie (print first reduce sort serie). You're not evaluating the block, so it's just treating it as a block of word! or get-word! values; just REDUCE it. You can also use MINIMUM-OF instead of sorting the block. first minimum-of reduce [a b c]
>> sort reduce [a b c]
== [-1 1 255] In your example, PRINT evaluates it for you which is why you end up seeing the values you want in the end. -- Gregg