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

[REBOL] sort/scramble

From: hallvard:ystad:oops-as:no at: 4-Jan-2004 0:54

Hi I need a function that will make sure a block is _not_ sorted. ex:
>> sort/scramble [ 1 2 7 7 7 4 9 f 3 h h h h 3e 54 5 4 k] >> [ 1 h 2 7 h 4 9 f 3 h 7 3e 54 7 h 5 4 k]
Is this feasible without a lot of work? Would anyone happen to have such a function in a drawer somewhere? Thanks, HY