Skip to content
Cinch
← Data.Map API referenceSAMPLE LISTING
cinch-collections / 0.2.0Data/Map.cinch

Declaration source.

This sample listing contains the declarations shown in the API reference. Package implementations will appear here when real package data is connected.

module Data.Map where
3-- A persistent mapping from ordered keys to values.
4opaque Map k v
5
6-- Construct an empty map.
7empty :: forall k v. Map k v
8
9-- Insert a value. An existing value at the same key is replaced.
10insert :: forall k v. using (ord :: Ord k) => k -> v -> Map k v -> Map k v
12-- Find the value associated with a key.
13lookup :: forall k v. using (ord :: Ord k) => k -> Map k v -> Option v