mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-17 13:01:31 +03:00
Add unionTM to the RewMap' Trie
This commit is contained in:
parent
1e063e58f3
commit
e3d41b0f2c
@ -110,6 +110,8 @@ instance TrieMap RewMap' (QName,[Type],Int) where
|
||||
|
||||
f2 (Just pM) = Just (alterTM n f pM)
|
||||
|
||||
unionTM f (RM a) (RM b) = RM (unionTM (unionTM (unionTM f)) a b)
|
||||
|
||||
toListTM (RM m) = [ ((x,ts,n),y) | (x,tM) <- toListTM m
|
||||
, (ts,pM) <- toListTM tM
|
||||
, (n,y) <- toListTM pM ]
|
||||
|
Loading…
Reference in New Issue
Block a user