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 ∷ Type → Type) 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 #

basicUnsafeSlice ∷ Int → Int → Vector a → Vector a Source #

basicUnsafeIndexMVector a → Int → Box 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 #

basicUnsafeSlice ∷ Int → Int → Vector a → Vector a Source #

basicUnsafeIndexMVector a → Int → Box 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 #

basicUnsafeSlice ∷ Int → Int → Vector a → Vector a Source #

basicUnsafeIndexMVector a → Int → Box a Source #

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

elemseqVector a → a → b → b Source #

Vector Vector a 
Instance details

Defined in Data.Vector.Strict

Methods

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

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

basicLengthVector a → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector a → Vector a Source #

basicUnsafeIndexMVector a → Int → Box 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

Methods

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

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

basicLengthVector All → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector All → Vector All Source #

basicUnsafeIndexMVector All → Int → Box All Source #

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

elemseqVector All → All → b → b Source #

Vector Vector Any 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Any → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Any → Vector Any Source #

basicUnsafeIndexMVector Any → Int → Box Any Source #

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

elemseqVector Any → Any → b → b Source #

Vector Vector Int16 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Int16 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Int16 → Vector Int16 Source #

basicUnsafeIndexMVector Int16 → Int → Box Int16 Source #

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

elemseqVector Int16 → Int16 → b → b Source #

Vector Vector Int32 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Int32 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Int32 → Vector Int32 Source #

basicUnsafeIndexMVector Int32 → Int → Box Int32 Source #

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

elemseqVector Int32 → Int32 → b → b Source #

Vector Vector Int64 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Int64 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Int64 → Vector Int64 Source #

basicUnsafeIndexMVector Int64 → Int → Box Int64 Source #

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

elemseqVector Int64 → Int64 → b → b Source #

Vector Vector Int8 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Int8 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Int8 → Vector Int8 Source #

basicUnsafeIndexMVector Int8 → Int → Box Int8 Source #

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

elemseqVector Int8 → Int8 → b → b Source #

Vector Vector Word16 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Word16 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Word16 → Vector Word16 Source #

basicUnsafeIndexMVector Word16 → Int → Box Word16 Source #

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

elemseqVector Word16 → Word16 → b → b Source #

Vector Vector Word32 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Word32 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Word32 → Vector Word32 Source #

basicUnsafeIndexMVector Word32 → Int → Box Word32 Source #

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

elemseqVector Word32 → Word32 → b → b Source #

Vector Vector Word64 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Word64 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Word64 → Vector Word64 Source #

basicUnsafeIndexMVector Word64 → Int → Box Word64 Source #

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

elemseqVector Word64 → Word64 → b → b Source #

Vector Vector Word8 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Word8 → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Word8 → Vector Word8 Source #

basicUnsafeIndexMVector Word8 → Int → Box Word8 Source #

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

elemseqVector Word8 → Word8 → b → b Source #

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 #

basicUnsafeSlice ∷ Int → Int → Vector () → Vector () Source #

basicUnsafeIndexMVector () → Int → Box () Source #

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

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

Vector Vector Bool 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Bool → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Bool → Vector Bool Source #

basicUnsafeIndexMVector Bool → Int → Box Bool Source #

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

elemseqVector Bool → Bool → b → b Source #

Vector Vector Char 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Char → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Char → Vector Char Source #

basicUnsafeIndexMVector Char → Int → Box Char Source #

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

elemseqVector Char → Char → b → b Source #

Vector Vector Double 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Double → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Double → Vector Double Source #

basicUnsafeIndexMVector Double → Int → Box Double Source #

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

elemseqVector Double → Double → b → b Source #

Vector Vector Float 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Float → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Float → Vector Float Source #

basicUnsafeIndexMVector Float → Int → Box Float Source #

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

elemseqVector Float → Float → b → b Source #

Vector Vector Int 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Int → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Int → Vector Int Source #

basicUnsafeIndexMVector Int → Int → Box Int Source #

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

elemseqVector Int → Int → b → b Source #

Vector Vector Word 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector Word → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector Word → Vector Word Source #

basicUnsafeIndexMVector Word → Int → Box Word Source #

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

elemseqVector Word → Word → b → b Source #

Unbox a ⇒ Vector Vector (Complex a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector (Complex a) → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector (Complex a) → Vector (Complex a) Source #

basicUnsafeIndexMVector (Complex a) → Int → Box (Complex a) Source #

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

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

Unbox a ⇒ Vector Vector (Identity a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

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

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

basicLengthVector (Identity a) → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector (Identity a) → Vector (Identity a) Source #

basicUnsafeIndexMVector (Identity a) → Int → Box (Identity a) Source #

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

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

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 #

basicUnsafeSlice ∷ Int → Int → Vector (Down a) → Vector (Down a) Source #

basicUnsafeIndexMVector (Down a) → Int → Box (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

Methods

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

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

basicLengthVector (First a) → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector (First a) → Vector (First a) Source #

basicUnsafeIndexMVector (First a) → Int → Box (First a) Source #

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

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

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 #

basicUnsafeSlice ∷ Int → Int → Vector (Last a) → Vector (Last a) Source #

basicUnsafeIndexMVector (Last a) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (Max a) → Vector (Max a) Source #

basicUnsafeIndexMVector (Max a) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (Min a) → Vector (Min a) Source #

basicUnsafeIndexMVector (Min a) → Int → Box (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

Methods

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

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

basicLengthVector (WrappedMonoid a) → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector (WrappedMonoid a) → Vector (WrappedMonoid a) Source #

basicUnsafeIndexMVector (WrappedMonoid a) → Int → Box (WrappedMonoid a) Source #

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

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

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 #

basicUnsafeSlice ∷ Int → Int → Vector (Dual a) → Vector (Dual a) Source #

basicUnsafeIndexMVector (Dual a) → Int → Box (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

Methods

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

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

basicLengthVector (Product a) → Int Source #

basicUnsafeSlice ∷ Int → Int → Vector (Product a) → Vector (Product a) Source #

basicUnsafeIndexMVector (Product a) → Int → Box (Product a) Source #

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

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

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 #

basicUnsafeSlice ∷ Int → Int → Vector (Sum a) → Vector (Sum a) Source #

basicUnsafeIndexMVector (Sum a) → Int → Box (Sum a) Source #

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

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

Vector Vector (DoNotUnboxLazy a) 
Instance details

Defined in Data.Vector.Unboxed.Base

NFData a ⇒ Vector Vector (DoNotUnboxNormalForm a) 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector (DoNotUnboxStrict a) 
Instance details

Defined in Data.Vector.Unboxed.Base

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 #

basicUnsafeSlice ∷ Int → Int → Vector (Arg a b) → Vector (Arg a b) Source #

basicUnsafeIndexMVector (Arg a b) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (As a b) → Vector (As a b) Source #

basicUnsafeIndexMVector (As a b) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (a, b) → Vector (a, b) Source #

basicUnsafeIndexMVector (a, b) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (Const a b) → Vector (Const a b) Source #

basicUnsafeIndexMVector (Const a b) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (Alt f a) → Vector (Alt f a) Source #

basicUnsafeIndexMVector (Alt f a) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (a, b, c) → Vector (a, b, c) Source #

basicUnsafeIndexMVector (a, b, c) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (a, b, c, d) → Vector (a, b, c, d) Source #

basicUnsafeIndexMVector (a, b, c, d) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (Compose f g a) → Vector (Compose f g a) Source #

basicUnsafeIndexMVector (Compose f g a) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (a, b, c, d, e) → Vector (a, b, c, d, e) Source #

basicUnsafeIndexMVector (a, b, c, d, e) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → Vector (a, b, c, d, e, f) → Vector (a, b, c, d, e, f) Source #

basicUnsafeIndexMVector (a, b, c, d, e, f) → Int → Box (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 #

basicUnsafeSlice ∷ Int → Int → KVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

basicUnsafeIndexMKVVector kv vv (k, v) → Int → Box (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 #

omittedField ∷ Maybe (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

mappendVMap kv vv k v → VMap kv vv k v → VMap kv vv k v

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

(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

sconcat ∷ NonEmpty (VMap kv vv k v) → VMap kv vv k v

stimes ∷ Integral b ⇒ b → VMap kv vv k v → VMap kv vv k v

(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)

Methods

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

fromListN ∷ Int → [Item (VMap kv vv k v)] → VMap kv vv k v

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

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

Defined in Data.VMap

Associated Types

type Rep (VMap kv vv k v) ∷ Type → Type

Methods

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

to ∷ Rep (VMap kv vv k v) x → VMap kv vv k v

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

Defined in Data.VMap

Methods

showsPrec ∷ Int → VMap kv vv k v → ShowS

showVMap kv vv k v → String

showList ∷ [VMap kv vv k v] → ShowS

(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 → ()

(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

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

(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 #

showTypeOf ∷ Proxy (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) ⇒ Int → VMap 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 #

basicUnsafeSlice ∷ Int → Int → KVMVector 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 #

basicUnsafeNew ∷ Int → ST s (KVMVector kmv vmv s (k, v)) Source #

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

basicUnsafeReplicate ∷ Int → (k, v) → ST s (KVMVector kmv vmv s (k, v)) Source #

basicUnsafeReadKVMVector kmv vmv s (k, v) → Int → ST 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) → Int → ST 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 #

basicUnsafeSlice ∷ Int → Int → KVVector kv vv (k, v) → KVVector kv vv (k, v) Source #

basicUnsafeIndexMKVVector kv vv (k, v) → Int → Box (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)

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

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

(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)

sconcat ∷ NonEmpty (KVVector kv vv (k, v)) → KVVector kv vv (k, v)

stimes ∷ Integral b ⇒ b → KVVector kv vv (k, v) → KVVector kv vv (k, v)

(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))

Methods

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

fromListN ∷ Int → [Item (KVVector kv vv (k, v))] → KVVector kv vv (k, v)

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

Generic (KVVector kv vv a) Source # 
Instance details

Defined in Data.VMap.KVVector

Associated Types

type Rep (KVVector kv vv a) ∷ Type → Type

Methods

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

to ∷ Rep (KVVector kv vv a) x → KVVector kv vv a

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

Defined in Data.VMap.KVVector

Methods

showsPrec ∷ Int → KVVector kv vv (k, v) → ShowS

showKVVector kv vv (k, v) → String

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

(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) → ()

(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

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

(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 #

showTypeOf ∷ Proxy (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 #