SketchyLISP Reference |
Copyright (C) 2006 Nils M Holm |
<<[string->number] | [Index] | [string-ci<?]>> |
Conformance: R5RS
Purpose: Append strings.
Arguments:
A - string
B... - strings to be appended
Model:
(define (string-append a . b) (letrec ((append-str (lambda (a b) (list->string (append (string->list a) (string->list b)))))) (reduce append-str (cons a b) "")))
Implementation:
; This function is a primitive function.
Example:
(string-append "He" "llo " "World") => "Hello World"
See also:
string,
string-length,
string-ref,
append.
<<[string->number] | [Index] | [string-ci<?]>> |