Subject: Re: Question: Tokenizing CDATA attribute values From: "W. Eliot Kimber" <eliot@xxxxxxxxxx> Date: Mon, 16 Jun 1997 12:48:59 -0500 |
At 01:37 PM 6/16/97 -0400, David Megginson wrote: >Actually, it's not all that simple unless you're a big LISP fan (like >I am), but it does seem to work. The first argument is a string to >split, and the second argument is an (optional) list of characters to >be treated as token separators, which defaults to '(#\space): > > split(" this that the other thing") > ==> '("this" "that" "the" "other" "thing") > > split("alpha |beta|gamma|delta" '(#\|)) > ==> '("alpha " " beta " " gamma " " delta") > > split("alpha |beta|gamma|delta" '(#\|)) > ==> '("alpha" "beta" "gamma" "delta") David, Thanks for the functions--I'll put them to use right away. While we're on the subject, can someone provide (or point me to) a brief tutorial on the distinction between a simple define, "let" procedures, and "lambda" procedures? I seem to be being particularly dim about these--probably too many years of procedural programming to see the obvious in a scheme context. Thanks, Eliot DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Question: Tokenizing CDATA attr, Dave Love | Thread | Re: Question: Tokenizing CDATA attr, David Megginson |
Question: Tokenizing CDATA attribut, David Megginson | Date | Re: Question: Tokenizing CDATA attr, David Megginson |
Month |