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

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

From: tim:johnsons-web at: 18-Jun-2003 10:23

* Arnaud <[garcia--a2--wanadoo--fr]> [030618 10:02]:
> Hello, > I try to find the minimun of a serie (print first reduce sort serie). > > the problem: the sort function works with the name of the variable instead > of using their values, even if a use ":" > example: > a: 255 > b: 1 > c: -1 > >> print sort[:a :b :c] > 255 1 -1 > > >> print sort[a b c] > 255 1 -1 > > And I would like: > -1 1 255
Hi Arnaud: Try this:
>print sort/reverse [a b c]
-1 1 255
>> a: 97
== 97
>> print sort/reverse [a b c]
-1 1 97 Kind of a tricky, huh? tim -- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com