t3x.org / sketchy / library / s-ref.html
SketchyLISP
Reference
  Copyright (C) 2007
Nils M Holm

string-ref

Conformance: R5RS Scheme

Purpose: Extract a char at a given offset from a string. The first char is at position 0.

Arguments:
X - string
N - position of char to extract

Model:

(define (string-ref x n)
  (list-ref (string->list x) n))

Implementation:

; This function is a primitive function.

Example:

(string-ref "abcdef" 2) 
=> #\c

See also:
string, string-length, string-ref, substring.