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

Taoufik Dachraoui dachraoui.taoufik at gmail.com
Thu Jul 26 15:27:59 UTC 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20120726/3a6ac247/attachment.html>

More information about the Openmcl-devel mailing list