nixd
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
10
def
indent
(x: str, ch: str =
" "
):
11
return
ch + x
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.12.0