mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:15:26 +03:00
8 lines
279 B
Plaintext
8 lines
279 B
Plaintext
Kind.reduce.txt
|
|
: ∀(txt: Kind.Text)
|
|
Kind.Term
|
|
= λtxt
|
|
let P = λx Kind.Term
|
|
let cons = λx λxs (Kind.reduce Bool.true (Kind.app (Kind.app Kind.Book.String.cons (Kind.num x)) (Kind.txt xs)))
|
|
let nil = (Kind.reduce Bool.true Kind.Book.String.nil)
|
|
(~txt P cons nil) |