The Kawa Scheme Language

Lists and sequences

A list is a sequence of values, which is implemented as a chain of linked pairs. You can create a constant list by quoting a parenthesized list:

'(3 4 (10 20 30) "a string")

A vector is a sequence is whose elements are indexed by integers. A vector uses less space than a list of the same length, and is generally more efficient than a list.

Lists and vectors are examples of sequences, as are strings, and some other data types. Sequences have certain common operations ...