chore: improve readability of a zipWith call (#9116)
This commit is contained in:
parent
52ab0141cd
commit
463f2c5f25
1 changed files with 5 additions and 1 deletions
|
|
@ -189,7 +189,11 @@ def saveSpecParamInfo (decls : Array Decl) : CompilerM Unit := do
|
|||
let mut paramsInfo := declsInfo[i]!
|
||||
let some mask := m.find? decl.name | unreachable!
|
||||
trace[Compiler.specialize.info] "{decl.name} {mask}"
|
||||
paramsInfo := Array.zipWith (fun info fixed => if fixed || info matches .user then info else .other) paramsInfo mask
|
||||
paramsInfo := Array.zipWith (as := paramsInfo) (bs := mask) fun info fixed =>
|
||||
if fixed || info matches .user then
|
||||
info
|
||||
else
|
||||
.other
|
||||
for j in [:paramsInfo.size] do
|
||||
let mut info := paramsInfo[j]!
|
||||
if info matches .fixedNeutral && !hasFwdDeps decl paramsInfo j then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue