Skip to content

WList

class WList : public std::vector<Value>

Heterogeneous list container inheriting from std::vector

WList provides Lisp-like list semantics with: - Arbitrary element types (elements are Values) - First-class list objects - Sequence operations (car, cdr, cons, length)

Lists form the structure of WAL S-expressions: - Function calls: (+ 1 2) → WList{Symbol("+"), 1, 2} - Data structures: (list 1 2 3) → WList{1, 2, 3} - Nested forms: (func (nested 1 2) 3) → WList with nested WList

See
Value::is_list
See
SEval::eval for list evaluation