JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

pp

core-api


    function
    boot.janet on line 1912, column 1

    (pp x)

    Pretty-print to stdout or `(dyn *out*)`. The format string used is 
    `(dyn *pretty-format* "%q")`.


See also:printprintf2 examplesSign in to add an example
Loading...
(range 10000) # @[0 1 2 ... 9997 9998 9999]

# By default, pp truncates. You can change its behavior:
(setdyn :pretty-format "%j") # jdn format
(setdyn :pretty-format "%m") # full printing without truncation
# For a list of all print formats: https://janet-lang.org/capi/writing-c-functions.html#Panicking

(range 10000) # Prints all of them according to your dyn
veqqqPlayground
# many terminals will truncate long data, use this if you need to see/copypaste it:
(defn full-print `Print a large DS without truncation` [ds] (print (string/format "%m" ds)))
veqqqPlayground