mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 19:37:08 +03:00
10 lines
301 B
Plaintext
10 lines
301 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)
|