mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 19:37:08 +03:00
9 lines
202 B
Plaintext
9 lines
202 B
Plaintext
String.indent
|
|
: ∀(tab: Nat)
|
|
String
|
|
= λtab
|
|
let P = λx(String)
|
|
let succ = λtab.pred (String.cons ' ' (String.cons ' ' (String.indent tab.pred)))
|
|
let zero = String.nil
|
|
(~tab P succ zero)
|