nixd
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
d
e
f
i
n
o
p
s
v
Related Symbols
Files
File List
File Members
All
c
d
e
l
m
n
r
t
Functions
Typedefs
Macros
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
libnixf
src
Basic
support.py
Go to the documentation of this file.
1
from
functools
import
reduce
2
from
operator
import
add
3
from
typing
import
cast
4
5
6
def
lines
(l: list[str]) -> str:
7
return
cast(str, reduce(add, map(
lambda
x: x +
"\n"
, l)))
8
9
6
def
lines
(l: list[str]) -> str:
…
10
def
indent
(x: str, ch: str =
" "
):
11
return
ch + x
10
def
indent
(x: str, ch: str =
" "
):
…
support.lines
str lines(list[str] l)
Definition
support.py:6
support.indent
indent(str x, str ch=" ")
Definition
support.py:10
Generated by
1.13.2