[plt-scheme] String functions in Dr. Scheme
Daniel Yoo skrev:
>
>
> On Sat, 28 Apr 2007, jmcaxolotl at gmail.com wrote:
>
>> I have some experience with Common Lisp and emacs' elisp, but am new
>> to Scheme. I'm trying to fool around with some functions I wrote in
>> elisp, that need to be able to map the characters in a string to their
>> numerical places in the alphabet.
Don't forget to lookup "format" in the HelpDesk.
And now I have the chance, I'll mention my latest toy, a
string concatenation macro. An example:
(concat word 0 i c word i _)
evaluates to the same as
(string-append (substring w 0 i)
(string c)
(substring w i (string-length w)))
See more at:
<http://www.scheme.dk/blog/2007/04/writing-spelling-corrector-in-plt.html>
--
Jens Axel Søgaard