String-Ref

(string-ref string integer) -> integer

Using the indexing system, returns the ASCII numerical value for the character residing in the string at the reference point indicated by the integer.

Examples:

>>(string-ref "Eric" 3)
:: 99
>>(string-ref "Eric" 0)
:: 69
>>(string-ref "eric" 0)
:: 101

Mosquito Lisp does not have a character data-type, so the numeric value for that character is returned instead, as an integer.

See Also: indexing system