Skip to content

Instantly share code, notes, and snippets.

@valvallow
Created February 10, 2010 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valvallow/300249 to your computer and use it in GitHub Desktop.
Save valvallow/300249 to your computer and use it in GitHub Desktop.
(define insert-g
(lambda (set-f)
(lambda (new old lat)
(fold-right (lambda (e l)
(cond ((eq? old e)(set-f new old l))
(else (cons e l))))
'()
lat))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment