Browse files

Add REPL problem examples.

  • Loading branch information...
1 parent 4c8f709 commit 0da9a0c28885a284ba8ca10164ace33c32cac2ba @pjstadig committed Mar 15, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/laziness/repl_problems.clj
View
16 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.