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