| Example usages of the function make-selector-function. | | | In interaction 1 through 3 we demonstrate generation and use of the first function.
Next we outline how to define accessors of data structures, which are represented as lists.
In reality, we are dealing with list-based record structures. In my every day programming, such list
structures are quite common. It is therefore immensely important, to access data abstractly (via
name accessors, instead of via the position in the list (car, cadr, etc). In this context,
the make-selector-function comes in handy.
|