s c h e m e w i k i . o r g
/
SearchResult
?
/ Scm.PattMatchAlphSample
Edit
|
Attach
|
Ref'd By
|
Printable
|
More
|
Advanced Search
| Full Text
Topic Name
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
(require (lib "14.ss" "srfi"))
(define (test-alphabetic words) (letrec ((exp (regexp (string-append "^[" (char-set->string (char-set-difference char-set:letter char-set:punctuation)) "]+$"))) (checker (lambda (words alphawords) (if (null? words) alphawords (let ((word (car words)) (if (regexp-match exp (car words)) (checker (cdr words) (cons (car words) alphawords)) (checker (cdr words) alphawords)))))) (checker words '())))2004
Current Rev: r1.1 - 18 May 2004 - 18:27 GMT -
BrentAFulgham
, Revision History:
Diffs
| r1.1
© 2004 by the contributing authors. / You are Main.guest