Builtins and Libraries
3.1 Global Utilities
3.2 Numbers
3.3 Strings
3.4 Booleans
3.5 Raw  Array
3.6 Tables
3.7 lists
3.8 sets
3.9 arrays
3.10 string-dict
3.11 option
3.12 pick
3.13 either
3.14 srcloc
3.15 pprint
3.16 s-exp
3.17 s-exp-structs
3.18 image-structs
3.19 image
3.20 world
3.21 reactors
3.22 plot
3.15 pprint
On this page:
3.15.1 Data types
._  plus
._  output
.pretty
3.15.2 Functions
str
number
blank
sbreak
concat
nest
if-flat
group
flow
flow-map
vert
parens
braces
brackets
dquote
squote
align
hang
prefix
infix
infix-break
separate
surround
soft-surround
surround-separate
label-align-surround

3.15 pprint

Usage:

include pprint

import pprint as ...

3.15.1 Data types

mt-doc
Fields
flat-width
has-hardline

str
Fields
s
flat-width
has-hardline

hardline
Fields
flat-width
has-hardline

blank
Fields
n
flat-width
has-hardline

concat
Fields
fst
snd
flat-width
has-hardline

nest
Fields
indent
d
flat-width
has-hardline

if-flat
Fields
flat
vert
flat-width
has-hardline

align
Fields
d
flat-width
has-hardline

align-spaces
Fields
n
flat-width
has-hardline

group
Fields
d
flat-width
has-hardline

Shared Methods

._plus :: (other :: Any) -> Any
._output :: () -> Any
.pretty :: (width :: Any) -> Any
3.15.2 Functions
str :: (s :: Any) -> Any
number :: (n :: Number) -> Any
blank :: (n :: Any) -> Any
sbreak :: (n :: Any) -> Any
concat :: (fst :: Any, snd :: Any) -> Any
nest :: (n :: Any, d :: Any) -> Any
if-flat :: (flat :: Any, vert :: Any) -> Any
group :: (d :: Any) -> Any
flow :: (items :: Any) -> Any
flow-map :: (
sep :: Any,
f :: Any,
items :: Any
)
-> Any
vert :: (items :: Any) -> Any
parens :: (d :: Any) -> Any
braces :: (d :: Any) -> Any
brackets :: (d :: Any) -> Any
dquote :: (s :: Any) -> Any
squote :: (s :: Any) -> Any
align :: (d :: Any) -> Any
hang :: (i :: Any, d :: Any) -> Any
prefix :: (
n :: Any,
b :: Any,
x :: Any,
y :: Any
)
-> Any
infix :: (
n :: Number,
b :: Number,
op :: PPrintDoc,
x :: PPrintDoc,
y :: PPrintDoc
)
-> Any
infix-break :: (
n :: Number,
b :: Number,
op :: PPrintDoc,
x :: PPrintDoc,
y :: PPrintDoc
)
-> Any
separate :: (sep :: PPrintDoc, docs :: lists.List) -> Any
surround :: (
n :: Number,
b :: Number,
open :: PPrintDoc,
contents :: PPrintDoc,
close :: PPrintDoc
)
-> Any
soft-surround :: (
n :: Number,
b :: Number,
open :: PPrintDoc,
contents :: PPrintDoc,
close :: PPrintDoc
)
-> Any
surround-separate :: (
n :: Number,
b :: Number,
void :: PPrintDoc,
open :: PPrintDoc,
sep :: PPrintDoc,
close :: PPrintDoc,
docs :: lists.List
)
-> Any
label-align-surround :: (
label :: Any,
open :: Any,
sep :: Any,
contents :: Any,
close :: Any
)
-> Any