Hello,

I find myself frequently using the following macro:

(define-macro (prepend! thing lst)
   `(set! ,lst (cons ,thing ,lst)))

Have I missed a module somewhere that does this kind of things?
At least, I couldn't find anything in SRFIs. It may also be the
case that this is too specific to certain non-functional usages
(LilyPond in my case).

Thanks in advance,
Jean Abou Samra


Reply via email to