LispMe-named-LET-fix


LispMe Does not currently allow a named let form. This can be annoying, especially when you have code that you want to port to LispMe. So here is a fix.

 (macro (nlet ex) 
   (let ((func (cadr ex)) 
         (vars (map car (caddr ex))) 
         (init (map cadr (caddr ex))) 
         (body (cdddr ex))) 
   `((letrec ((,func (lambda ,vars ,@body))) 
       ,func) 
     ,@init))) 

Contributors

Fred Bayer, Riastradh


category-code