mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:56:48 +03:00
13 lines
321 B
Plaintext
13 lines
321 B
Plaintext
List.Concatenator.join
|
|
: ∀(T: *) ∀(xs: (List (List.Concatenator T)))
|
|
(List.Concatenator T)
|
|
= λT λxs
|
|
let P = λxs (List.Concatenator T)
|
|
let cons = λhead λtail
|
|
(List.Concatenator.concat
|
|
T
|
|
head
|
|
(List.Concatenator.join T tail)
|
|
)
|
|
let nil = (List.Concatenator.nil T)
|
|
(~xs P cons nil) |