bloglang/13/examples/errors/pattern_too_many_args.txt

9 lines
125 B
Plaintext
Raw Permalink Normal View History

2020-09-10 14:02:19 -07:00
data List = { Nil, Cons Int List }
defn head l = {
case l of {
Nil -> { 0 }
Cons x y z -> { x }
}
}