s c h e m e w i k i . o r g

/ Sandbox.StringRecipesNew

This Web


WebHome 
WebChanges 
WebTopicList 
WebStatistics 

All Webs


Chicken
Cookbook
Erlang
Know
Main
Plugins
Sandbox
Scm
TWiki  

Schematics


Schematics Home
TWiki Shorthand

Offsite Links


Schemers.org
Lambda the Ultimate
twiki.org

2. String Recipes

Comment the recipes here

The inspiration for the above string recipes were taken from the String section of the CommonLispCookBook.

-- JensAxelSoegaard - 31 Mar 2004

In Scheme, strings are sequences of characters. Since you can't talk about strings without talking about characters, you should know that mzScheme supports the [Basic Latin and Latin-1 Supplement, AKA ISO-8859-1. There's work being done to extend the range of valid characters, but at the moment this is what's available. You can specify a literal character with the sequence #\ followed by the character, i.e.

> #\A
#\A
> #\a
#\a
> #\*
#\*

-- GordonWeakliem - 05 Apr 2004

 
 
© 2004 by the contributing authors. / You are Main.guest