[Openmcl-devel] deftype list-of (recursive definition)

Taoufik Dachraoui dachraoui.taoufik at gmail.com
Thu Jul 26 08:27:59 PDT 2012


Hi

I would like to define a recursive type as follows:

(deftype list-of (type)
   `(or null (cons ,type (list-of ,type))))

This does not work (stack overflow)


How can define such types?

Kind regards
Taoufik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20120726/3a6ac247/attachment.htm>


More information about the Openmcl-devel mailing list