Welcome to the CHICKEN Scheme pasting service

string-replace* added by mario-goulart on Wed Nov 30 23:01:19 2011

(use srfi-13)

(define (string-replace* s orig replacement)
  (let ((idx (string-contains s orig)))
    (if idx
        (string-replace*
         (string-replace s replacement idx (+ idx (string-length orig)))
         orig
         replacement)
        s)))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the R5RS procedure to access the first element of a pair?
Visually impaired? Let me spell it for you (wav file) download WAV