1> (define toplevel-html-elements (list html frameset))
3> ((cadr toplevel-html-elements) (frame 'src "sss"))
(ast "frameset" ((ast "frame" () (src "sss") single)) () double)
4> (xml-render ((cadr toplevel-html-elements) (frame 'src "sss")))
"<frameset><frame src = \"sss\"></frameset>"
A few interactions which illustrate the first class properties of function objects.
We bind the variable toplevel-html-elements to the list of the two functions html and frameset. Both
are HTML mirror functions defined in the LAML general library. We illustrate next that the value of the variable indeed is a list of two
functions. Thus, we have seen that we can organized functions as elements in lists.
The function cadr returns the second element of a list. It is equivalent to (compose car cdr), where compose is functional composition. In the third evaluation we apply the mirror function frameset on
a single frame. The last interaction shows the HTML rendering of the this. xml-render is a function defined in the LAML general library.