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: carl:cybercraft at: 1-Jan-2003 9:32

On 31-Dec-02, Gabriele Santilli wrote:
> Hi Carl, > On Tuesday, December 31, 2002, 7:26:57 AM, you wrote: >> Or is there a word in REBOL that already allows us to do this? >>> up-chars: charset [#"A" - #"Z"] >>> parse "ABC" [some up-chars] > == true >>> parse "AbC" [some up-chars] > == false >>> parse "ABC++" [some up-chars] > == false >>> parse ["a" 1 "b" 2] [to number! to end] > == true >>> parse ["a" "1" "b" "2"] [to number! to end] > == false
Well, I did know of parse. (: But I was thinking of something that applies a standard function to every value in a series. I'm sure I'd seen some word that does that. And parsing's so different from standard REBOL that switching over to it is difficult for those who haven't used it enough for it to have stuck in their mind. I have to re-learn it whenever I have to do more than the most basic splitting. And it doesn't help that strings and blocks are treated differently...
>> parse "ABC" [to char! to end]
** Script Error: Invalid argument: char No doubt it's for performance reasons, but anyway... -- Carl Read