Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@skilldrick
Created June 19, 2011 12:45
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 skilldrick/1034238 to your computer and use it in GitHub Desktop.
Save skilldrick/1034238 to your computer and use it in GitHub Desktop.
SICP craziness
;;segments is a function that takes an agenda and returns its segments
(define (segments agenda) (cdr agenda))
;;Then, inside another function:
(let ((segments (segments agenda)))
;;In this let, segments is the return value of segments. WTF.
)
@skilldrick
Copy link
Author

From page 284, Section 3.3.4.

@skilldrick
Copy link
Author

Compare with the JS implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment