Module

Data.ObjectMap.Internal

Package
purescript-object-maps
Repository
thought2/purescript-object-maps

#fromArray Source

fromArray :: forall k v. EncodeJson k => Array (Tuple k v) -> ObjectMap k v

#toArray Source

toArray :: forall k v. ObjectMap k v -> Array (Tuple k v)

#empty Source

empty :: forall k v. ObjectMap k v

#isEmpty Source

isEmpty :: forall k v. ObjectMap k v -> Boolean

#size Source

size :: forall k v. ObjectMap k v -> Int

#member Source

member :: forall k v. EncodeJson k => k -> ObjectMap k v -> Boolean

#insert Source

insert :: forall k v. EncodeJson k => k -> v -> ObjectMap k v -> ObjectMap k v

#delete Source

delete :: forall k v. EncodeJson k => k -> ObjectMap k v -> ObjectMap k v

#lookup Source

lookup :: forall k v. EncodeJson k => k -> ObjectMap k v -> Maybe v

#alter Source

alter :: forall k v. EncodeJson k => (Maybe v -> Maybe v) -> k -> ObjectMap k v -> ObjectMap k v

Insert, remove or update a value for a key in a map

#update Source

update :: forall k v. EncodeJson k => (v -> Maybe v) -> k -> ObjectMap k v -> ObjectMap k v

Remove or update a value for a key in a map

#toJsonStr Source

toJsonStr :: forall a. EncodeJson a => a -> String

#enforceJsString Source