Database Access
Our example database program takes queries of the form:
(querydb <condition> <action>)The <condition> is formed by consing and onto the restrictions, and the <action> is formed by consing list onto the retrievals.
The condition and action are Clojure code using a variable tuple: if the condition is true, the action is executed and its result is collected. Both the condition and action can access fields of the current database record using the call:
(getdb (quote <fieldname>))