79318494

Date: 2024-12-30 19:58:04
Score: 0.5
Natty:
Report link

The first code block is incorrect. Match patterns like that only work when all the parameters to be matched on come after the colon. For example, the code block is equivalent to

    def length (α : Type) : List α -> Nat
    | List.nil => Nat.zero
    | List.cons y ys => Nat.succ (length α ys)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kyle Miller