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

[REBOL] Re: Hungarian Alphabet Sort (was Re: Collation sequence - proper and eff

From: brett:codeconscious at: 20-May-2002 9:38

Interesting question. Tag! and Issue! might be useful for your design but both will not be able to handle certain characters. I figured I could write some code to show what they are: chars-in-form: function [ example-form [block!] ] [all-chars useable-chars ch test-value] [ all-chars: copy {} useable-chars: copy {} repeat i 255 [ append all-chars ch: to-char i if all [ not error? try [test-value: load rejoin example-form] 1 = length? test-value ch = first test-value ] [append useable-chars ch] ] exclude all-chars useable-chars ] print mold chars-in-form [#"#" ch] print mold chars-in-form [#"<" ch #">"] Regards, Brett.