mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:56:48 +03:00
11 lines
216 B
Plaintext
11 lines
216 B
Plaintext
String.indent
|
|
: ∀(tab: Nat) String
|
|
= λtab
|
|
let P = λx String
|
|
let succ = λtab.pred
|
|
(String.cons
|
|
#32
|
|
(String.cons #32 (String.indent tab.pred))
|
|
)
|
|
let zero = String.nil
|
|
(~tab P succ zero) |