feat: mark List.toArray with [matchPattern]
This commit is contained in:
parent
9deab00941
commit
81ae6a734b
1 changed files with 1 additions and 1 deletions
|
|
@ -717,7 +717,7 @@ export Array (mkArray)
|
|||
| [] => 0
|
||||
| _::as => as.redLength + 1
|
||||
|
||||
@[inline] def List.toArray {α : Type u} (as : List α) : Array α :=
|
||||
@[inline, matchPattern] def List.toArray {α : Type u} (as : List α) : Array α :=
|
||||
as.toArrayAux (Array.mkEmpty as.redLength)
|
||||
|
||||
namespace Array
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue