Hi, Gabriele

> >>> [1x1] > [2x2]
> RPT> == false

> I  think  that is the old comparison function for pairs. It should
> give the same results as SORT.

And this makes me to ask: what is order of datatypes?

>> sort [<0> 0x0 0.0.0 "2" #"0" #0 $0.00 0.0 0 [0] a 'a :a a:]
== [a a: :a 'a 0 0 $0.00 #"0" 0x0 0.0.0 "2" #0 <0> [0]]

something to do with action numbers?

Only integer! and decimal! are compatible, not money, nor char.

Every string type is not compatible with each other.

>> sort [10 9 $8.00 #"7" 6x6 5.5.5 "4" #3 <2>]
== [9 10 $8.00 #"7" 6x6 5.5.5 "4" #3 <2>]

Same for list!, block!, hash!.

Useful perhaps to regroup/sort different datatype! in a block:

>> sort [3 <2> <1> 2 <6> "7" "1"]
== [2 3 "1" "7" <1> <2> <6>]

>> sort [d b :c b: :f :b 'b 'a]
== [b d b: :b :c :f 'a 'b]

---
Ciao
Romano

 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to