Overview Module Function Class Tea 3.2.2 Reference Documentation
© 2007 PDM&FC

Module tea.lists

Functions for manipulating lists and pair objects.

Function Summary
append Appends a new element to the end of a list.
car Fetches the left element of a pair object.
cdr Fetches the right element of a pair object.
cons Creates a new pair object.
empty? Checks if a list as no elements.
length Counts the number of elements in a list.
list Creates a list object.
not-empty? Checks if a list has elements.
nth Fetches an object in a list in a certain position.
prepend Creates a new list obtained by inserting a new element at the head of an existing list.
set-car! Modifies the contents of the left side of a pair.
set-cdr! Modifies the contents of the right side of a pair.

Overview Module Function Class Tea 3.2.2 Reference Documentation
© 2007 PDM&FC
Report a bug or request new features
© 2007