Kind2/base/List/head_with_default.kind
Rígille Scherrer Borges Menezes b01874a713 erase types
this commit was done using @elmattic's script
https://gist.github.com/elmattic/e3817b670a53bea45e846312809319cf
2021-04-19 14:28:03 -03:00

6 lines
113 B
Plaintext

List.head_with_default<A: Type>(default: A, xs: List<A>): A
case xs {
nil : default,
cons: xs.head
}