add a property test for pupdate and updateMap
This commit is contained in:
parent
bce9b45c25
commit
cdffbeffc9
3 changed files with 87 additions and 4 deletions
|
|
@ -246,7 +246,7 @@ closedBoundedInterval from to = PlutusTx.intersection (PlutusTx.from from) (Plut
|
|||
--------------------------------------------------------------------------------
|
||||
|
||||
{- | / O(n) /. The expression @'updateMap' f k v@ will update the value @x@ at key @k@.
|
||||
If @f x@ is Nothing, the key-value pair will be deleted from the map, otherwise the
|
||||
If @f x@ is Nothing, the key-value pair will be deleted from the map, otherwise the
|
||||
value will be updated.
|
||||
-}
|
||||
updateMap :: Eq k => (v -> Maybe v) -> k -> AssocMap.Map k v -> AssocMap.Map k v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue