Skip to content

Commit

Permalink
Add REPL problem examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstadig committed Mar 15, 2012
1 parent 4c8f709 commit 0da9a0c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/laziness/repl_problems.clj
@@ -0,0 +1,16 @@
(ns laziness.repl-problems)

;;============================================================
;; Set *print-length* to avoid realizing an infinite sequence
;;============================================================

;; (range 10000)
;; (set! *print-length* 25)


;;======================================
;; Set *print-level* to control nesting
;;======================================

;; '(1 (2 (3) 4) 5)
;; (set! *print-level* 2)

0 comments on commit 0da9a0c

Please sign in to comment.