Merge pull request #55 from Liqwid-Labs/seungheonoh/utiloptimization
`pmapUnionWith` optimization
This commit is contained in:
commit
f123fc7a9a
1 changed files with 1 additions and 2 deletions
|
|
@ -217,11 +217,10 @@ pmapUnionWith = phoistAcyclic $
|
|||
# plam
|
||||
( \p -> P.do
|
||||
pf <- plet $ pfstBuiltin # p
|
||||
ps <- plet $ psndBuiltin # p
|
||||
pmatch (plookup # pf # ys) $ \case
|
||||
PJust v ->
|
||||
-- Data conversions here are silly, aren't they?
|
||||
ppairDataBuiltin # pf # pdata (f # pfromData ps # pfromData v)
|
||||
ppairDataBuiltin # pf # pdata (f # pfromData (psndBuiltin # p) # pfromData v)
|
||||
PNothing -> p
|
||||
)
|
||||
# xs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue