mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:56:48 +03:00
19 lines
539 B
Plaintext
19 lines
539 B
Plaintext
Kind.Book.to_hvm.go
|
|
: ∀(book: Kind.Book)
|
|
String.Concatenator
|
|
= λbook
|
|
let P = λx String.Concatenator
|
|
let cons = λhead λtail
|
|
let P = λx String.Concatenator
|
|
let new = λhead.fst λhead.snd λnil
|
|
((Kind.Text.show.go "F."
|
|
((Kind.Text.show.go head.fst)
|
|
((Kind.Text.show.go " = "
|
|
((Kind.Term.to_hvm.go head.snd Nat.zero Bool.true Nat.zero
|
|
((Kind.Text.show.go String.newline
|
|
((Kind.Book.to_hvm.go tail
|
|
nil)))))))))))
|
|
(~head P new)
|
|
let nil = λnil nil
|
|
(~book P cons nil)
|