feat: simprocs for #[1,2,3,4,5][2] (#4765) None of these were working previously: ``` #check_simp #[1,2,3,4,5][2] ~> 3 #check_simp #[1,2,3,4,5][2]? ~> some 3 #check_simp #[1,2,3,4,5][7]? ~> none #check_simp #[][0]? ~> none #check_simp #[1,2,3,4,5][2]! ~> 3 #check_simp #[1,2,3,4,5][7]! ~> (default : Nat) #check_simp (#[] : Array Nat)[0]! ~> (default : Nat) ```
This is the repository for Lean 4.
See Setting Up Lean.
Please read our Contribution Guidelines first.
See Building Lean (documentation source: doc/make/index.md).