perf: specialize iterateLookaround
This commit is contained in:
parent
135eac71a1
commit
7106d3fb34
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ def charRole (prev? : Option CharType) (curr : CharType) (next?: Option CharType
|
|||
CharRole.head
|
||||
|
||||
|
||||
private def iterateLookaround (f : (Option Char × Char × Option Char) → α) (string : String) : Array α :=
|
||||
@[specialize] private def iterateLookaround (f : (Option Char × Char × Option Char) → α) (string : String) : Array α :=
|
||||
if string.isEmpty then
|
||||
#[]
|
||||
else if string.length == 1 then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue