leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: mathlib4

Topic: pattern matching on array


Paige Thomas (Jan 02 2024 at 17:54):

I can pattern match the equivalent of the List [] case by using #[]. Is there notation I can use for the equivalent of the List (hd :: tl) case?

Paige Thomas (Jan 02 2024 at 18:54):

I guess maybe there isn't one, since it is not constructed that way.


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll