9 lines
121 B
Plaintext
9 lines
121 B
Plaintext
data List = { Nil, Cons Int List }
|
|
|
|
defn head l = {
|
|
case l of {
|
|
Nil -> { 0 }
|
|
Cons x -> { x }
|
|
}
|
|
}
|