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

[REBOL] Re: can't quite get it right...

From: sunandadh:aol at: 30-Dec-2002 2:20

Romano:
> uppercase?: func [ch [char! string!] /local tmp] [ > all [char? ch ch: to-string ch] > ch == uppercase copy ch > ]
I'd thought of that approach too It's good in that it'll handle issue! and other data types -- you can remove the [Char! string!] from the spec. But it returns 'true if there are non-letters in the input string: uppercase? "AA++" == True The original would return false for that. I don't know what the original requirement was though, so I don't know which approach meets it best. Sunanda