mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +03:00
8 lines
247 B
Plaintext
8 lines
247 B
Plaintext
List.concat
|
|
: ∀(T: *) ∀(xs: (List T)) ∀(ys: (List T)) (List T)
|
|
= λT λxs λys
|
|
let P = λxs ∀(ys: (List T)) (List T)
|
|
let cons = λhead λtail λys
|
|
(List.cons T head (List.concat T tail ys))
|
|
let nil = λys ys
|
|
(~xs P cons nil ys) |