Dixit Joel Neely (03.06 04.01.2004):
>How about this:
>
>     >> random [0 1 2 3 4 5 6 7 8 9]
>     == [8 9 3 4 2 1 7 6 0 5]

Ah, of course. I didn't think about the fact that 'random takes anything as an 
argument...

>Can you provide a little more detail on your requirements?

Yes. Especially since I have nested blocks. I have a block with, say 10 blocks inside 
it. Each block has many different data types within it (but only one element matters). 
I want to unsort them so that _part of_  the fourth element (a string) is not 
identical in adjacent blocks. So this is what I want to avoid (not real example):

example: [[4 1 7 "nicsrg" 5 6 3 8 2 9] [3 1 2 "sicrtg" 9 8 4 7 6 5] [9 3 7 "iscgtn" 6 
2 8 5 4 1] [1 3 8 "inctrg" 5 2 9 4 6 7] [9 6 5 "ngsirt" 8 2 1 3 7 4] [3 7 8 "igtnrs" 4 
1 2 9 5 6] [6 4 8 "gnrsit" 2 3 9 1 5 7] [9 5 4 "sntgir" 6 7 8 2 1 3] [6 7 4 "gstinr" 1 
5 2 3 9 8] [7 9 2 "sgcnit" 5 1 8 3 6 4]]

In the first four blocks, the third character in the fourth element is #"c". I want 
these four blocks split apart. Getting at the character in question is easy (foreach b 
example [print pick fourth b 3]), but unsorting the blocks from there?

Any help appreciated
HY


>-jn-
>
>
>-- 
>To unsubscribe from this list, just send an email to
>[EMAIL PROTECTED] with unsubscribe as the subject.

Prętera censeo Carthaginem esse delendam


-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to