You're viewing version 1.2.0 of *print-length*. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

*print-length*

clojure.core

*print-length* controls how many items of each collection the
printer will print. If it is bound to logical false, there is no
limit. Otherwise, it must be bound to an integer indicating the maximum
number of items of each collection to print. If a collection contains
more items, the printer will print items up to the limit followed by
'...' to represent the remaining items. The root binding is nil
indicating no limit.

1 Example top

  • ;; Oops! Don't this!!!
    user=> (iterate inc 0)
    ;; Frantically doing C-c C-c :-P
    ; Evaluation aborted.
    
    user=> (set! *print-length* 10)
    10
    
    ;; Now it's perfectly fine. Yay!
    user=> (iterate inc 0)
    (0 1 2 3 4 5 6 7 8 9 ...)
    
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core_print.clj:15 top

(def
 ^{:doc "*print-length* controls how many items of each collection the
  printer will print. If it is bound to logical false, there is no
  limit. Otherwise, it must be bound to an integer indicating the maximum
  number of items of each collection to print. If a collection contains
  more items, the printer will print items up to the limit followed by
  '...' to represent the remaining items. The root binding is nil
  indicating no limit."
   :added "1.0"}
 *print-length* nil)
Vars in clojure.core/*print-length*:
Used in 1 other vars with-bindings

Comments top

No comments for *print-length*. Log in to add a comment.