Zulip Chat Archive
Stream: general
Topic: Resolved
Erika Su (Oct 21 2022 at 18:49):
Just to be sure: lean currently doesn't support nested pattern matching, right? Because such code cannot compile.
def toFmt(l: List (Nat ⊕ String)): Fmt :=
match l with
| nil => Fmt.nil
| cons (inl n) tail => Fmt.str <| toFmt tail
| cons (inr str) tail => Fmt.num <| toFmt tail
```
Notification Bot (Oct 21 2022 at 18:53):
Erika Su has marked this topic as resolved.
Notification Bot (Oct 21 2022 at 18:53):
Erika Su has marked this topic as unresolved.
Last updated: Dec 20 2023 at 11:08 UTC