Module Extras/HashMap

This module is undocumented. This is a list of its definitions.

contains :: MMap.T a b -> a -> <Proc> Boolean

Returns True if the map contains the given key. Deprecated: use MMap.containsKey instead.

create :: () -> <Proc> MMap.T a b

Creates a new empty map. Deprecated: use MMap.create instead.

entries :: MMap.T a b -> <Proc> [(a, b)]

The entries of the map as a list of key-value pairs. The list is a snapshot, not a view of the map. Deprecated: use MMap.entries instead.

fromList :: [(a, b)] -> <Proc> MMap.T a b

Creates a new map from the given list of key-value pairs. Deprecated: use MMap.fromEntryList instead.

get :: MMap.T a b -> a -> <Proc> Maybe b

The value associated with the given key, or Nothing if the map contains no such key. Deprecated: use MMap.get instead.

put :: MMap.T a b -> a -> b -> <Proc> Maybe b

Associates the given value with the given key in the map and returns the value that was previously associated with the key, or Nothing if there was none.

Deprecated: use MMap.put instead.

size :: MMap.T a b -> <Proc> Integer

The number of entries in the map. Deprecated: use MMap.size instead.

unsafeGet :: MMap.T a b -> a -> <Proc> b

The value associated with the given key, without checking that the key is present. A missing key yields a null that SCL has no representation for, so it escapes into the program and typically surfaces much later as a NullPointerException. Use get unless the key is known to be there.

Deprecated: use MMap.unsafeGet instead.