vector-map-1.1.0.0: An efficient VMap that is backed by two vectors: one for keys and another for values.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.VMap

Synopsis

Documentation

class MVector (Mutable v) a ⇒ Vector (v ∷ TypeType) a Source #

Class of immutable vectors. Every immutable vector is associated with its mutable version through the Mutable type family. Methods of this class should not be used directly. Instead, Data.Vector.Generic and other Data.Vector modules provide safe and fusible wrappers.

Minimum complete implementation:

Instances

Instances details
Vector Vector a 
Instance details

Defined in Data.Vector

Methods

basicUnsafeFreezeMutable Vector s a → ST s (Vector a) Source #

basicUnsafeThawVector a → ST s (Mutable Vector s a) Source #

basicLengthVector a → Int Source #

basicUnsafeSliceIntIntVector a → Vector a Source #

basicUnsafeIndexMVector a → IntBox a Source #

basicUnsafeCopyMutable Vector s a → Vector a → ST s () Source #

elemseqVector a → a → b → b Source #

Prim a ⇒ Vector Vector a 
Instance details

Defined in Data.Vector.Primitive

Methods

basicUnsafeFreezeMutable Vector s a → ST s (Vector a) Source #

basicUnsafeThawVector a → ST s (Mutable Vector s a) Source #

basicLengthVector a → Int Source #

basicUnsafeSliceIntIntVector a → Vector a Source #

basicUnsafeIndexMVector a → IntBox a Source #

basicUnsafeCopyMutable Vector s a → Vector a → ST s () Source #

elemseqVector a → a → b → b Source #

Storable a ⇒ Vector Vector a 
Instance details

Defined in Data.Vector.Storable

Methods

basicUnsafeFreezeMutable Vector s a → ST s (Vector a) Source #

basicUnsafeThawVector a → ST s (Mutable Vector s a) Source #

basicLengthVector a → Int Source #

basicUnsafeSliceIntIntVector a → Vector a Source #

basicUnsafeIndexMVector a → IntBox a Source #

basicUnsafeCopyMutable Vector s a → Vector a → ST s () Source #

elemseqVector a → a → b → b Source #

Vector Vector All 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Any 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int16 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int32 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int64 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int8 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word16 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word32 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word64 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word8 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector () 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s () → ST s (Vector ()) Source #

basicUnsafeThawVector () → ST s (Mutable Vector s ()) Source #

basicLengthVector () → Int Source #

basicUnsafeSliceIntIntVector () → Vector () Source #

basicUnsafeIndexMVector () → IntBox () Source #

basicUnsafeCopyMutable Vector s () → Vector () → ST s () Source #

elemseqVector () → () → b → b Source #

Vector Vector Bool 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Char 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Double 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Float 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a ⇒ Vector Vector (Complex a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a ⇒ Vector Vector (Identity a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a ⇒ Vector Vector (Down a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Down a) → ST s (Vector (Down a)) Source #

basicUnsafeThawVector (Down a) → ST s (Mutable Vector s (Down a)) Source #

basicLengthVector (Down a) → Int Source #

basicUnsafeSliceIntIntVector (Down a) → Vector (Down a) Source #

basicUnsafeIndexMVector (Down a) → IntBox (Down a) Source #

basicUnsafeCopyMutable Vector s (Down a) → Vector (Down a) → ST s () Source #

elemseqVector (Down a) → Down a → b → b Source #

Unbox a ⇒ Vector Vector (First a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a ⇒ Vector Vector (Last a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Last a) → ST s (Vector (Last a)) Source #

basicUnsafeThawVector (Last a) → ST s (Mutable Vector s (Last a)) Source #

basicLengthVector (Last a) → Int Source #

basicUnsafeSliceIntIntVector (Last a) → Vector (Last a) Source #

basicUnsafeIndexMVector (Last a) → IntBox (Last a) Source #

basicUnsafeCopyMutable Vector s (Last a) → Vector (Last a) → ST s () Source #

elemseqVector (Last a) → Last a → b → b Source #

Unbox a ⇒ Vector Vector (Max a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Max a) → ST s (Vector (Max a)) Source #

basicUnsafeThawVector (Max a) → ST s (Mutable Vector s (Max a)) Source #

basicLengthVector (Max a) → Int Source #

basicUnsafeSliceIntIntVector (Max a) → Vector (Max a) Source #

basicUnsafeIndexMVector (Max a) → IntBox (Max a) Source #

basicUnsafeCopyMutable Vector s (Max a) → Vector (Max a) → ST s () Source #

elemseqVector (Max a) → Max a → b → b Source #

Unbox a ⇒ Vector Vector (Min a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Min a) → ST s (Vector (Min a)) Source #

basicUnsafeThawVector (Min a) → ST s (Mutable Vector s (Min a)) Source #

basicLengthVector (Min a) → Int Source #

basicUnsafeSliceIntIntVector (Min a) → Vector (Min a) Source #

basicUnsafeIndexMVector (Min a) → IntBox (Min a) Source #

basicUnsafeCopyMutable Vector s (Min a) → Vector (Min a) → ST s () Source #

elemseqVector (Min a) → Min a → b → b Source #

Unbox a ⇒ Vector Vector (WrappedMonoid a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a ⇒ Vector Vector (Dual a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Dual a) → ST s (Vector (Dual a)) Source #

basicUnsafeThawVector (Dual a) → ST s (Mutable Vector s (Dual a)) Source #

basicLengthVector (Dual a) → Int Source #

basicUnsafeSliceIntIntVector (Dual a) → Vector (Dual a) Source #

basicUnsafeIndexMVector (Dual a) → IntBox (Dual a) Source #

basicUnsafeCopyMutable Vector s (Dual a) → Vector (Dual a) → ST s () Source #

elemseqVector (Dual a) → Dual a → b → b Source #

Unbox a ⇒ Vector Vector (Product a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a ⇒ Vector Vector (Sum a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Sum a) → ST s (Vector (Sum a)) Source #

basicUnsafeThawVector (Sum a) → ST s (Mutable Vector s (Sum a)) Source #

basicLengthVector (Sum a) → Int Source #

basicUnsafeSliceIntIntVector (Sum a) → Vector (Sum a) Source #

basicUnsafeIndexMVector (Sum a) → IntBox (Sum a) Source #

basicUnsafeCopyMutable Vector s (Sum a) → Vector (Sum a) → ST s () Source #

elemseqVector (Sum a) → Sum a → b → b Source #

Prim a ⇒ Vector Vector (UnboxViaPrim a) 
Instance details

Defined in Data.Vector.Unboxed.Base

(Unbox a, Unbox b) ⇒ Vector Vector (Arg a b) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Arg a b) → ST s (Vector (Arg a b)) Source #

basicUnsafeThawVector (Arg a b) → ST s (Mutable Vector s (Arg a b)) Source #

basicLengthVector (Arg a b) → Int Source #

basicUnsafeSliceIntIntVector (Arg a b) → Vector (Arg a b) Source #

basicUnsafeIndexMVector (Arg a b) → IntBox (Arg a b) Source #

basicUnsafeCopyMutable Vector s (Arg a b) → Vector (Arg a b) → ST s () Source #

elemseqVector (Arg a b) → Arg a b → b0 → b0 Source #

(IsoUnbox a b, Unbox b) ⇒ Vector Vector (As a b) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (As a b) → ST s (Vector (As a b)) Source #

basicUnsafeThawVector (As a b) → ST s (Mutable Vector s (As a b)) Source #

basicLengthVector (As a b) → Int Source #

basicUnsafeSliceIntIntVector (As a b) → Vector (As a b) Source #

basicUnsafeIndexMVector (As a b) → IntBox (As a b) Source #

basicUnsafeCopyMutable Vector s (As a b) → Vector (As a b) → ST s () Source #

elemseqVector (As a b) → As a b → b0 → b0 Source #

(Unbox a, Unbox b) ⇒ Vector Vector (a, b) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (a, b) → ST s (Vector (a, b)) Source #

basicUnsafeThawVector (a, b) → ST s (Mutable Vector s (a, b)) Source #

basicLengthVector (a, b) → Int Source #

basicUnsafeSliceIntIntVector (a, b) → Vector (a, b) Source #

basicUnsafeIndexMVector (a, b) → IntBox (a, b) Source #

basicUnsafeCopyMutable Vector s (a, b) → Vector (a, b) → ST s () Source #

elemseqVector (a, b) → (a, b) → b0 → b0 Source #

Unbox a ⇒ Vector Vector (Const a b) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Const a b) → ST s (Vector (Const a b)) Source #

basicUnsafeThawVector (Const a b) → ST s (Mutable Vector s (Const a b)) Source #

basicLengthVector (Const a b) → Int Source #

basicUnsafeSliceIntIntVector (Const a b) → Vector (Const a b) Source #

basicUnsafeIndexMVector (Const a b) → IntBox (Const a b) Source #

basicUnsafeCopyMutable Vector s (Const a b) → Vector (Const a b) → ST s () Source #

elemseqVector (Const a b) → Const a b → b0 → b0 Source #

Unbox (f a) ⇒ Vector Vector (Alt f a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Alt f a) → ST s (Vector (Alt f a)) Source #

basicUnsafeThawVector (Alt f a) → ST s (Mutable Vector s (Alt f a)) Source #

basicLengthVector (Alt f a) → Int Source #

basicUnsafeSliceIntIntVector (Alt f a) → Vector (Alt f a) Source #

basicUnsafeIndexMVector (Alt f a) → IntBox (Alt f a) Source #

basicUnsafeCopyMutable Vector s (Alt f a) → Vector (Alt f a) → ST s () Source #

elemseqVector (Alt f a) → Alt f a → b → b Source #

(Unbox a, Unbox b, Unbox c) ⇒ Vector Vector (a, b, c) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (a, b, c) → ST s (Vector (a, b, c)) Source #

basicUnsafeThawVector (a, b, c) → ST s (Mutable Vector s (a, b, c)) Source #

basicLengthVector (a, b, c) → Int Source #

basicUnsafeSliceIntIntVector (a, b, c) → Vector (a, b, c) Source #

basicUnsafeIndexMVector (a, b, c) → IntBox (a, b, c) Source #

basicUnsafeCopyMutable Vector s (a, b, c) → Vector (a, b, c) → ST s () Source #

elemseqVector (a, b, c) → (a, b, c) → b0 → b0 Source #

(Unbox a, Unbox b, Unbox c, Unbox d) ⇒ Vector Vector (a, b, c, d) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (a, b, c, d) → ST s (Vector (a, b, c, d)) Source #

basicUnsafeThawVector (a, b, c, d) → ST s (Mutable Vector s (a, b, c, d)) Source #

basicLengthVector (a, b, c, d) → Int Source #

basicUnsafeSliceIntIntVector (a, b, c, d) → Vector (a, b, c, d) Source #

basicUnsafeIndexMVector (a, b, c, d) → IntBox (a, b, c, d) Source #

basicUnsafeCopyMutable Vector s (a, b, c, d) → Vector (a, b, c, d) → ST s () Source #

elemseqVector (a, b, c, d) → (a, b, c, d) → b0 → b0 Source #

Unbox (f (g a)) ⇒ Vector Vector (Compose f g a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (Compose f g a) → ST s (Vector (Compose f g a)) Source #

basicUnsafeThawVector (Compose f g a) → ST s (Mutable Vector s (Compose f g a)) Source #

basicLengthVector (Compose f g a) → Int Source #

basicUnsafeSliceIntIntVector (Compose f g a) → Vector (Compose f g a) Source #

basicUnsafeIndexMVector (Compose f g a) → IntBox (Compose f g a) Source #

basicUnsafeCopyMutable Vector s (Compose f g a) → Vector (Compose f g a) → ST s () Source #

elemseqVector (Compose f g a) → Compose f g a → b → b Source #

(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e) ⇒ Vector Vector (a, b, c, d, e) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (a, b, c, d, e) → ST s (Vector (a, b, c, d, e)) Source #

basicUnsafeThawVector (a, b, c, d, e) → ST s (Mutable Vector s (a, b, c, d, e)) Source #

basicLengthVector (a, b, c, d, e) → Int Source #

basicUnsafeSliceIntIntVector (a, b, c, d, e) → Vector (a, b, c, d, e) Source #

basicUnsafeIndexMVector (a, b, c, d, e) → IntBox (a, b, c, d, e) Source #

basicUnsafeCopyMutable Vector s (a, b, c, d, e) → Vector (a, b, c, d, e) → ST s () Source #

elemseqVector (a, b, c, d, e) → (a, b, c, d, e) → b0 → b0 Source #

(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e, Unbox f) ⇒ Vector Vector (a, b, c, d, e, f) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreezeMutable Vector s (a, b, c, d, e, f) → ST s (Vector (a, b, c, d, e, f)) Source #

basicUnsafeThawVector (a, b, c, d, e, f) → ST s (Mutable Vector s (a, b, c, d, e, f)) Source #

basicLengthVector (a, b, c, d, e, f) → Int Source #

basicUnsafeSliceIntIntVector (a, b, c, d, e, f) → Vector (a, b, c, d, e, f) Source #

basicUnsafeIndexMVector (a, b, c, d, e, f) → IntBox (a, b, c, d, e, f) Source #

basicUnsafeCopyMutable Vector s (a, b, c, d, e, f) → Vector (a, b, c, d, e, f) → ST s () Source #

elemseqVector (a, b, c, d, e, f) → (a, b, c, d, e, f) → b0 → b0 Source #

(Vector kv k, Vector vv v) ⇒ Vector (KVVector kv vv) (k, v) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

basicUnsafeFreezeMutable (KVVector kv vv) s (k, v) → ST s (KVVector kv vv (k, v)) Source #

basicUnsafeThawKVVector kv vv (k, v) → ST s (Mutable (KVVector kv vv) s (k, v)) Source #

basicLengthKVVector kv vv (k, v) → Int Source #

basicUnsafeSliceIntIntKVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

basicUnsafeIndexMKVVector kv vv (k, v) → IntBox (k, v) Source #

basicUnsafeCopyMutable (KVVector kv vv) s (k, v) → KVVector kv vv (k, v) → ST s () Source #

elemseqKVVector kv vv (k, v) → (k, v) → b → b Source #

type VB = Vector Source #

type VU = Vector Source #

type VP = Vector Source #

type VS = Vector Source #

newtype VMap kv vv k v Source #

Constructors

VMap 

Fields

Instances

Instances details
(Vector vk k, Vector vv v, Ord k, FromJSONKey k, FromJSON v) ⇒ FromJSON (VMap vk vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

parseJSONValueParser (VMap vk vv k v) Source #

parseJSONListValueParser [VMap vk vv k v] Source #

omittedFieldMaybe (VMap vk vv k v) Source #

(Vector vk k, Vector vv v, ToJSONKey k, ToJSON v) ⇒ ToJSON (VMap vk vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

toJSONVMap vk vv k v → Value Source #

toEncodingVMap vk vv k v → Encoding Source #

toJSONList ∷ [VMap vk vv k v] → Value Source #

toEncodingList ∷ [VMap vk vv k v] → Encoding Source #

omitFieldVMap vk vv k v → Bool Source #

(Vector kv k, Vector vv v, Ord k) ⇒ Monoid (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

memptyVMap kv vv k v Source #

mappendVMap kv vv k v → VMap kv vv k v → VMap kv vv k v Source #

mconcat ∷ [VMap kv vv k v] → VMap kv vv k v Source #

(Vector kv k, Vector vv v, Ord k) ⇒ Semigroup (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

(<>)VMap kv vv k v → VMap kv vv k v → VMap kv vv k v Source #

sconcatNonEmpty (VMap kv vv k v) → VMap kv vv k v Source #

stimesIntegral b ⇒ b → VMap kv vv k v → VMap kv vv k v Source #

(Vector kv k, Vector vv v, Ord k) ⇒ IsList (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Associated Types

type Item (VMap kv vv k v) Source #

Methods

fromList ∷ [Item (VMap kv vv k v)] → VMap kv vv k v Source #

fromListNInt → [Item (VMap kv vv k v)] → VMap kv vv k v Source #

toListVMap kv vv k v → [Item (VMap kv vv k v)] Source #

Generic (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Associated Types

type Rep (VMap kv vv k v) ∷ TypeType Source #

Methods

fromVMap kv vv k v → Rep (VMap kv vv k v) x Source #

toRep (VMap kv vv k v) x → VMap kv vv k v Source #

(Show k, Show v, Vector kv k, Vector vv v) ⇒ Show (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

showsPrecIntVMap kv vv k v → ShowS Source #

showVMap kv vv k v → String Source #

showList ∷ [VMap kv vv k v] → ShowS Source #

(NFData (kv k), NFData (vv v)) ⇒ NFData (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

rnfVMap kv vv k v → () Source #

(Eq (kv k), Eq (vv v)) ⇒ Eq (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

(==)VMap kv vv k v → VMap kv vv k v → Bool Source #

(/=)VMap kv vv k v → VMap kv vv k v → Bool Source #

(NoThunks (kv k), NoThunks (vv v), Typeable kv, Typeable vv, Typeable k, Typeable v) ⇒ NoThunks (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

Methods

noThunksContextVMap kv vv k v → IO (Maybe ThunkInfo) Source #

wNoThunksContextVMap kv vv k v → IO (Maybe ThunkInfo) Source #

showTypeOfProxy (VMap kv vv k v) → String Source #

type Item (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

type Item (VMap kv vv k v) = (k, v)
type Rep (VMap kv vv k v) Source # 
Instance details

Defined in Data.VMap

type Rep (VMap kv vv k v) = D1 ('MetaData "VMap" "Data.VMap" "vector-map-1.1.0.0-inplace" 'True) (C1 ('MetaCons "VMap" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVMap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KVVector kv vv (k, v)))))

empty ∷ (Vector kv k, Vector vv v) ⇒ VMap kv vv k v Source #

sizeVector kv k ⇒ VMap kv vv k v → Int Source #

lookup ∷ (Ord k, Vector kv k, Vector vv v) ⇒ k → VMap kv vv k v → Maybe v Source #

findWithDefault ∷ (Ord k, Vector kv k, Vector vv v) ⇒ v → k → VMap kv vv k v → v Source #

member ∷ (Ord k, Vector kv k) ⇒ k → VMap kv vv k v → Bool Source #

notMember ∷ (Ord k, Vector kv k) ⇒ k → VMap kv vv k v → Bool Source #

map ∷ (Vector vv a, Vector vv b) ⇒ (a → b) → VMap kv vv k a → VMap kv vv k b Source #

mapMaybe ∷ (Vector kv k, Vector vv a, Vector vv b) ⇒ (a → Maybe b) → VMap kv vv k a → VMap kv vv k b Source #

mapWithKey ∷ (Vector kv k, Vector vv a, Vector vv b) ⇒ (k → a → b) → VMap kv vv k a → VMap kv vv k b Source #

filter ∷ (Vector kv k, Vector vv v) ⇒ (k → v → Bool) → VMap kv vv k v → VMap kv vv k v Source #

fold ∷ (Vector vv m, Monoid m) ⇒ VMap kv vv k m → m Source #

Fold values monoidally

foldlVector vv v ⇒ (a → v → a) → a → VMap kv vv k v → a Source #

foldlWithKey ∷ (Vector kv k, Vector vv v) ⇒ (a → k → v → a) → a → VMap kv vv k v → a Source #

foldMap ∷ (Vector vv v, Monoid m) ⇒ (v → m) → VMap kv vv k v → m Source #

foldMapWithKey ∷ (Vector kv k, Vector vv v, Monoid m) ⇒ (k → v → m) → VMap kv vv k v → m Source #

fromMap ∷ (Vector kv k, Vector vv v) ⇒ Map k v → VMap kv vv k v Source #

toMap ∷ (Vector kv k, Vector vv v) ⇒ VMap kv vv k v → Map k v Source #

fromList ∷ (Ord k, Vector kv k, Vector vv v) ⇒ [(k, v)] → VMap kv vv k v Source #

fromListN ∷ (Ord k, Vector kv k, Vector vv v) ⇒ Int → [(k, v)] → VMap kv vv k v Source #

toList ∷ (Vector kv k, Vector vv v) ⇒ VMap kv vv k v → [(k, v)] Source #

toAscList ∷ (Vector kv k, Vector vv v) ⇒ VMap kv vv k v → [(k, v)] Source #

keysVector kv k ⇒ VMap kv vv k v → [k] Source #

elemsVector vv v ⇒ VMap kv vv k v → [v] Source #

fromAscList ∷ (Eq k, Vector kv k, Vector vv v) ⇒ [(k, v)] → VMap kv vv k v Source #

fromAscListN ∷ (Eq k, Vector kv k, Vector vv v) ⇒ Int → [(k, v)] → VMap kv vv k v Source #

fromAscListWithKey ∷ (Eq k, Vector kv k, Vector vv v) ⇒ (k → v → v → v) → [(k, v)] → VMap kv vv k v Source #

fromAscListWithKeyN ∷ (Eq k, Vector kv k, Vector vv v) ⇒ Int → (k → v → v → v) → [(k, v)] → VMap kv vv k v Source #

fromDistinctAscList ∷ (Vector kv k, Vector vv v) ⇒ [(k, v)] → VMap kv vv k v Source #

fromDistinctAscListN ∷ (Vector kv k, Vector vv v) ⇒ Int → [(k, v)] → VMap kv vv k v Source #

internMaybe ∷ (Vector kv k, Ord k) ⇒ k → VMap kv vv k v → Maybe k Source #

null ∷ (Vector vv v, Vector kv k) ⇒ VMap kv vv k v → Bool Source #

splitAt ∷ (Vector vv v, Vector kv k) ⇒ IntVMap kv vv k v → (VMap kv vv k v, VMap kv vv k v) Source #

data KVMVector kmv vmv s a Source #

Instances

Instances details
(MVector kmv k, MVector vmv v) ⇒ MVector (KVMVector kmv vmv) (k, v) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

basicLengthKVMVector kmv vmv s (k, v) → Int Source #

basicUnsafeSliceIntIntKVMVector kmv vmv s (k, v) → KVMVector kmv vmv s (k, v) Source #

basicOverlapsKVMVector kmv vmv s (k, v) → KVMVector kmv vmv s (k, v) → Bool Source #

basicUnsafeNewIntST s (KVMVector kmv vmv s (k, v)) Source #

basicInitializeKVMVector kmv vmv s (k, v) → ST s () Source #

basicUnsafeReplicateInt → (k, v) → ST s (KVMVector kmv vmv s (k, v)) Source #

basicUnsafeReadKVMVector kmv vmv s (k, v) → IntST s (k, v) Source #

basicUnsafeWriteKVMVector kmv vmv s (k, v) → Int → (k, v) → ST s () Source #

basicClearKVMVector kmv vmv s (k, v) → ST s () Source #

basicSetKVMVector kmv vmv s (k, v) → (k, v) → ST s () Source #

basicUnsafeCopyKVMVector kmv vmv s (k, v) → KVMVector kmv vmv s (k, v) → ST s () Source #

basicUnsafeMoveKVMVector kmv vmv s (k, v) → KVMVector kmv vmv s (k, v) → ST s () Source #

basicUnsafeGrowKVMVector kmv vmv s (k, v) → IntST s (KVMVector kmv vmv s (k, v)) Source #

data KVVector kv vv a Source #

Instances

Instances details
(Vector kv k, Vector vv v) ⇒ Vector (KVVector kv vv) (k, v) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

basicUnsafeFreezeMutable (KVVector kv vv) s (k, v) → ST s (KVVector kv vv (k, v)) Source #

basicUnsafeThawKVVector kv vv (k, v) → ST s (Mutable (KVVector kv vv) s (k, v)) Source #

basicLengthKVVector kv vv (k, v) → Int Source #

basicUnsafeSliceIntIntKVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

basicUnsafeIndexMKVVector kv vv (k, v) → IntBox (k, v) Source #

basicUnsafeCopyMutable (KVVector kv vv) s (k, v) → KVVector kv vv (k, v) → ST s () Source #

elemseqKVVector kv vv (k, v) → (k, v) → b → b Source #

(Vector kv k, Vector vv v, Ord k) ⇒ Monoid (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

memptyKVVector kv vv (k, v) Source #

mappendKVVector kv vv (k, v) → KVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

mconcat ∷ [KVVector kv vv (k, v)] → KVVector kv vv (k, v) Source #

(Vector kv k, Vector vv v, Ord k) ⇒ Semigroup (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

(<>)KVVector kv vv (k, v) → KVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

sconcatNonEmpty (KVVector kv vv (k, v)) → KVVector kv vv (k, v) Source #

stimesIntegral b ⇒ b → KVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

(Vector kv k, Vector vv v, Ord k) ⇒ IsList (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

Associated Types

type Item (KVVector kv vv (k, v)) Source #

Methods

fromList ∷ [Item (KVVector kv vv (k, v))] → KVVector kv vv (k, v) Source #

fromListNInt → [Item (KVVector kv vv (k, v))] → KVVector kv vv (k, v) Source #

toListKVVector kv vv (k, v) → [Item (KVVector kv vv (k, v))] Source #

Generic (KVVector kv vv a) Source # 
Instance details

Defined in Data.VMap.KVVector

Associated Types

type Rep (KVVector kv vv a) ∷ TypeType Source #

Methods

fromKVVector kv vv a → Rep (KVVector kv vv a) x Source #

toRep (KVVector kv vv a) x → KVVector kv vv a Source #

(Show (kv k), Show (vv v)) ⇒ Show (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

showsPrecIntKVVector kv vv (k, v) → ShowS Source #

showKVVector kv vv (k, v) → String Source #

showList ∷ [KVVector kv vv (k, v)] → ShowS Source #

(NFData (kv k), NFData (vv v)) ⇒ NFData (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

rnfKVVector kv vv (k, v) → () Source #

(Eq (kv k), Eq (vv v)) ⇒ Eq (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

(==)KVVector kv vv (k, v) → KVVector kv vv (k, v) → Bool Source #

(/=)KVVector kv vv (k, v) → KVVector kv vv (k, v) → Bool Source #

(NoThunks (kv k), NoThunks (vv v), Typeable kv, Typeable vv, Typeable k, Typeable v) ⇒ NoThunks (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

Methods

noThunksContextKVVector kv vv (k, v) → IO (Maybe ThunkInfo) Source #

wNoThunksContextKVVector kv vv (k, v) → IO (Maybe ThunkInfo) Source #

showTypeOfProxy (KVVector kv vv (k, v)) → String Source #

type Mutable (KVVector kv vv) Source # 
Instance details

Defined in Data.VMap.KVVector

type Mutable (KVVector kv vv) = KVMVector (Mutable kv) (Mutable vv)
type Item (KVVector kv vv (k, v)) Source # 
Instance details

Defined in Data.VMap.KVVector

type Item (KVVector kv vv (k, v)) = (k, v)
type Rep (KVVector kv vv a) Source # 
Instance details

Defined in Data.VMap.KVVector

type Rep (KVVector kv vv a)

normalize ∷ (Vector kv k, Vector vv v, Ord k) ⇒ KVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

normalizeM ∷ (Ord k, PrimMonad m, Vector kv k, Vector vv v) ⇒ KVMVector (Mutable kv) (Mutable vv) (PrimState m) (k, v) → m (KVMVector (Mutable kv) (Mutable vv) (PrimState m) (k, v)) Source #