Kind/book/Kind.Book.to_hvm.go.kind2
2024-02-21 22:10:51 -03:00

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)