Skip to content

Instantly share code, notes, and snippets.

@edw
Created March 30, 2017 21:02
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 edw/fd3f2d7667f8b84ef6c572d0aa83f2aa to your computer and use it in GitHub Desktop.
Save edw/fd3f2d7667f8b84ef6c572d0aa83f2aa to your computer and use it in GitHub Desktop.
Extending Chibi Scheme's SHOW: This works, but is it correct?
(define (range n)
(λ (env)
(for-each (λ (i) ((displayed i) env))
(iota n))
env))
(show #f ">>>" (range 10) "<<<" nl) ; => ">>>0123456789<<<\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment