FSharpx.Collections


IntMap Module

Functions and values

Function or value Description

IntMap.adjust f k m

Full Usage: IntMap.adjust f k m

Parameters:
    f : 'a -> 'a
    k : int
    m : IntMap<'a>

Returns: IntMap<'a>

O(min(n,W)). Adjust a value at a specific key. When the key is not a member of the map, the original map is returned. Credit: Haskell.org

f : 'a -> 'a
k : int
m : IntMap<'a>
Returns: IntMap<'a>

IntMap.adjustWithKey f k m

Full Usage: IntMap.adjustWithKey f k m

Parameters:
    f : int -> 'a -> 'a
    k : int
    m : IntMap<'a>

Returns: IntMap<'a>

O(min(n,W)). Adjust a value at a specific key. When the key is not a member of the map, the original map is returned. Credit: Haskell.org

f : int -> 'a -> 'a
k : int
m : IntMap<'a>
Returns: IntMap<'a>

IntMap.alter f k t

Full Usage: IntMap.alter f k t

Parameters:
    f : 'a option -> 'a option
    k : int
    t : IntMap<'a>

Returns: IntMap<'a>

O(log n). The expression (alter f k map) alters the value x at k, or absence thereof. alter can be used to insert, delete, or update a value in an IntMap. Credit: Haskell.org

f : 'a option -> 'a option
k : int
t : IntMap<'a>
Returns: IntMap<'a>

IntMap.append m1 m2

Full Usage: IntMap.append m1 m2

Parameters:
Returns: IntMap<'a>
m1 : IntMap<'a>
m2 : IntMap<'a>
Returns: IntMap<'a>

IntMap.appendWith f m1 m2

Full Usage: IntMap.appendWith f m1 m2

Parameters:
Returns: IntMap<'a>
f : 'a -> 'a -> 'a
m1 : IntMap<'a>
m2 : IntMap<'a>
Returns: IntMap<'a>

IntMap.appendWithKey f m1 m2

Full Usage: IntMap.appendWithKey f m1 m2

Parameters:
Returns: IntMap<'a>
f : int -> 'a -> 'a -> 'a
m1 : IntMap<'a>
m2 : IntMap<'a>
Returns: IntMap<'a>

IntMap.concat xs

Full Usage: IntMap.concat xs

Parameters:
Returns: IntMap<'a>
xs : IntMap<'a> list
Returns: IntMap<'a>

IntMap.concatWith f xs

Full Usage: IntMap.concatWith f xs

Parameters:
    f : 'a -> 'a -> 'a
    xs : IntMap<'a> list

Returns: IntMap<'a>
f : 'a -> 'a -> 'a
xs : IntMap<'a> list
Returns: IntMap<'a>

IntMap.delete k t

Full Usage: IntMap.delete k t

Parameters:
Returns: IntMap<'a>

O(min(n,W)). Delete a key and its value from the map. When the key is not a member of the map, the original map is returned. Credit: Haskell.org

k : int
t : IntMap<'a>
Returns: IntMap<'a>

IntMap.deleteFindMax t

Full Usage: IntMap.deleteFindMax t

Parameters:
Returns: (int * 'a) * IntMap<'a>

O(log n). Retrieves the maximal key of the map, and the map stripped from that element. Credit: Haskell.org

t : IntMap<'a>
Returns: (int * 'a) * IntMap<'a>

IntMap.deleteFindMin t

Full Usage: IntMap.deleteFindMin t

Parameters:
Returns: (int * 'a) * IntMap<'a>

O(log n). Retrieves the minimal key of the map, and the map stripped from that element. Credit: Haskell.org

t : IntMap<'a>
Returns: (int * 'a) * IntMap<'a>

IntMap.deleteMax t

Full Usage: IntMap.deleteMax t

Parameters:
Returns: IntMap<'a>

O(log n). Delete the maximal key. Credit: Haskell.org

t : IntMap<'a>
Returns: IntMap<'a>

IntMap.deleteMin t

Full Usage: IntMap.deleteMin t

Parameters:
Returns: IntMap<'a>

O(log n). Delete the minimal key. Credit: Haskell.org

t : IntMap<'a>
Returns: IntMap<'a>

IntMap.difference m1 m2

Full Usage: IntMap.difference m1 m2

Parameters:
Returns: IntMap<'a>

O(n+m). Difference between two maps (based on keys). Credit: Haskell.org

m1 : IntMap<'a>
m2 : IntMap<'b>
Returns: IntMap<'a>

IntMap.differenceWith f m1 m2

Full Usage: IntMap.differenceWith f m1 m2

Parameters:
Returns: IntMap<'a>

O(n+m). Difference with a combining function. Credit: Haskell.org

f : 'a -> 'b -> 'a option
m1 : IntMap<'a>
m2 : IntMap<'b>
Returns: IntMap<'a>

IntMap.differenceWithKey f m1 m2

Full Usage: IntMap.differenceWithKey f m1 m2

Parameters:
    f : int -> 'a -> 'b -> 'a option
    m1 : IntMap<'a>
    m2 : IntMap<'b>

Returns: IntMap<'a>

O(n+m). Difference with a combining function. When two equal keys are encountered, the combining function is applied to the key and both values. If it returns Nothing, the element is discarded (proper set difference). If it returns (Just y), the element is updated with a new value y. Credit: Haskell.org

f : int -> 'a -> 'b -> 'a option
m1 : IntMap<'a>
m2 : IntMap<'b>
Returns: IntMap<'a>

IntMap.empty

Full Usage: IntMap.empty

Returns: IntMap<'b>

O(1). The empty map. Credit: Haskell.org

Returns: IntMap<'b>

IntMap.exists k _arg1

Full Usage: IntMap.exists k _arg1

Parameters:
Returns: bool

O(min(n,W)). Is the key a member of the map? Credit: Haskell.org

k : int
_arg1 : IntMap<'a>
Returns: bool

IntMap.filter p m

Full Usage: IntMap.filter p m

Parameters:
    p : 'a -> bool
    m : IntMap<'a>

Returns: IntMap<'a>

O(n). Filter all values that satisfy some predicate. Credit: Haskell.org

p : 'a -> bool
m : IntMap<'a>
Returns: IntMap<'a>

IntMap.filterWithKey predicate _arg1

Full Usage: IntMap.filterWithKey predicate _arg1

Parameters:
    predicate : int -> 'a -> bool
    _arg1 : IntMap<'a>

Returns: IntMap<'a>

O(n). Filter all keys/values that satisfy some predicate. Credit: Haskell.org

predicate : int -> 'a -> bool
_arg1 : IntMap<'a>
Returns: IntMap<'a>

IntMap.find k m

Full Usage: IntMap.find k m

Parameters:
Returns: 'a

O(min(n,W)). Lookup the value at a key in the map. Credit: Haskell.org

k : int
m : IntMap<'a>
Returns: 'a

IntMap.findMax t

Full Usage: IntMap.findMax t

Parameters:
Returns: int * 'a

O(log n). The maximal key of the map. Credit: Haskell.org

t : IntMap<'a>
Returns: int * 'a

IntMap.findMin t

Full Usage: IntMap.findMin t

Parameters:
Returns: int * 'a

O(log n). The minimal key of the map. Credit: Haskell.org

t : IntMap<'a>
Returns: int * 'a

IntMap.findWithDefault def k _arg1

Full Usage: IntMap.findWithDefault def k _arg1

Parameters:
    def : 'a
    k : int
    _arg1 : IntMap<'a>

Returns: 'a

O(min(n,W)). The expression (findWithDefault def k map) returns the value at key k or returns def when the key is not an element of the map. Credit: Haskell.org

def : 'a
k : int
_arg1 : IntMap<'a>
Returns: 'a

IntMap.fold f z

Full Usage: IntMap.fold f z

Parameters:
    f : 'a -> 'b -> 'a
    z : 'a

Returns: IntMap<'b> -> 'a

O(n). Fold the values in the map, such that fold f z == Prelude.foldr f z . elems. Credit: Haskell.org

f : 'a -> 'b -> 'a
z : 'a
Returns: IntMap<'b> -> 'a

IntMap.foldBack f z

Full Usage: IntMap.foldBack f z

Parameters:
    f : 'a -> 'b -> 'b
    z : 'b

Returns: IntMap<'a> -> 'b

O(n). FoldBack the values in the map, such that fold f z == Prelude.foldr f z . elems. Credit: Haskell.org

f : 'a -> 'b -> 'b
z : 'b
Returns: IntMap<'a> -> 'b

IntMap.foldBackWithKey f z t

Full Usage: IntMap.foldBackWithKey f z t

Parameters:
    f : int -> 'a -> 'b -> 'b
    z : 'b
    t : IntMap<'a>

Returns: 'b

O(n). FoldBack the keys and values in the map, such that foldWithKey f z == Prelude.foldr (uncurry f) z . toAscList. Credit: Haskell.org

f : int -> 'a -> 'b -> 'b
z : 'b
t : IntMap<'a>
Returns: 'b

IntMap.foldWithKey f z

Full Usage: IntMap.foldWithKey f z

Parameters:
    f : 'a -> int -> 'b -> 'a
    z : 'a

Returns: IntMap<'b> -> 'a

O(n). Fold the keys and values in the map, such that foldWithKey f z == Prelude.foldr (uncurry f) z . toAscList. Credit: Haskell.org

f : 'a -> int -> 'b -> 'a
z : 'a
Returns: IntMap<'b> -> 'a

IntMap.insert k x t

Full Usage: IntMap.insert k x t

Parameters:
    k : int
    x : 'a
    t : IntMap<'a>

Returns: IntMap<'a>

O(min(n,W)). Insert a new key/value pair in the map. If the key is already present in the map, the associated value is replaced with the supplied value, i.e. insert is equivalent to insertWith const. Credit: Haskell.org

k : int
x : 'a
t : IntMap<'a>
Returns: IntMap<'a>

IntMap.insertTryFindWithKey f k x t

Full Usage: IntMap.insertTryFindWithKey f k x t

Parameters:
    f : int -> 'a -> 'a -> 'a
    k : int
    x : 'a
    t : IntMap<'a>

Returns: 'a option * IntMap<'a>

O(min(n,W)). The expression (insertLookupWithKey f k x map) is a pair where the first element is equal to (lookup k map) and the second element equal to (insertWithKey f k x map). Credit: Haskell.org

f : int -> 'a -> 'a -> 'a
k : int
x : 'a
t : IntMap<'a>
Returns: 'a option * IntMap<'a>

IntMap.insertWith f k x t

Full Usage: IntMap.insertWith f k x t

Parameters:
    f : 'b -> 'b -> 'b
    k : int
    x : 'b
    t : IntMap<'b>

Returns: IntMap<'b>

O(min(n,W)). Insert with a combining function. insertWith f key value mp will insert the pair (key, value) into mp if key does not exist in the map. If the key does exist, the function will insert f new_value old_value. Credit: Haskell.org

f : 'b -> 'b -> 'b
k : int
x : 'b
t : IntMap<'b>
Returns: IntMap<'b>

IntMap.insertWithKey f k x t

Full Usage: IntMap.insertWithKey f k x t

Parameters:
    f : int -> 'a -> 'a -> 'a
    k : int
    x : 'a
    t : IntMap<'a>

Returns: IntMap<'a>

O(min(n,W)). Insert with a combining function. insertWithKey f key value mp will insert the pair (key, value) into mp if key does not exist in the map. If the key does exist, the function will insert f key new_value old_value. Credit: Haskell.org

f : int -> 'a -> 'a -> 'a
k : int
x : 'a
t : IntMap<'a>
Returns: IntMap<'a>

IntMap.intersection m1 m2

Full Usage: IntMap.intersection m1 m2

Parameters:
Returns: IntMap<'a>

O(n+m). The (left-biased) intersection of two maps (based on keys). Credit: Haskell.org

m1 : IntMap<'a>
m2 : IntMap<'b>
Returns: IntMap<'a>

IntMap.intersectionWith f m1 m2

Full Usage: IntMap.intersectionWith f m1 m2

Parameters:
Returns: IntMap<'c>

O(n+m). The intersection with a combining function. Credit: Haskell.org

f : 'a -> 'b -> 'c
m1 : IntMap<'a>
m2 : IntMap<'b>
Returns: IntMap<'c>

IntMap.intersectionWithKey f m1 m2

Full Usage: IntMap.intersectionWithKey f m1 m2

Parameters:
Returns: IntMap<'c>

O(n+m). The intersection with a combining function. Credit: Haskell.org

f : int -> 'a -> 'b -> 'c
m1 : IntMap<'a>
m2 : IntMap<'b>
Returns: IntMap<'c>

IntMap.isEmpty _arg1

Full Usage: IntMap.isEmpty _arg1

Parameters:
Returns: bool

O(1). Map is empty. Credit: Haskell.org

_arg1 : IntMap<'a>
Returns: bool

IntMap.isProperSubmapOf m1 m2

Full Usage: IntMap.isProperSubmapOf m1 m2

Parameters:
Returns: bool

O(n+m). Is this a proper submap? (ie. a submap but not equal). Defined as (isProperSubmapOf = isProperSubmapOfBy (==)). Credit: Haskell.org

m1 : IntMap<'a>
m2 : IntMap<'a>
Returns: bool

IntMap.isProperSubmapOfBy predicate t1 t2

Full Usage: IntMap.isProperSubmapOfBy predicate t1 t2

Parameters:
    predicate : 'a -> 'b -> bool
    t1 : IntMap<'a>
    t2 : IntMap<'b>

Returns: bool

O(n+m). Is this a proper submap? (ie. a submap but not equal). The expression (isProperSubmapOfBy f m1 m2) returns True when m1 and m2 are not equal, all keys in m1 are in m2, and when f returns True when applied to their respective values. Credit: Haskell.org

predicate : 'a -> 'b -> bool
t1 : IntMap<'a>
t2 : IntMap<'b>
Returns: bool

IntMap.isSubmapOf m1 m2

Full Usage: IntMap.isSubmapOf m1 m2

Parameters:
Returns: bool

O(n+m). Is this a submap? Defined as (isSubmapOf = isSubmapOfBy (==)). Credit: Haskell.org

m1 : IntMap<'a>
m2 : IntMap<'a>
Returns: bool

IntMap.isSubmapOfBy predicate t1 t2

Full Usage: IntMap.isSubmapOfBy predicate t1 t2

Parameters:
    predicate : 'a -> 'b -> bool
    t1 : IntMap<'a>
    t2 : IntMap<'b>

Returns: bool

O(n+m). The expression (isSubmapOfBy f m1 m2) returns True if all keys in m1 are in m2, and when f returns True when applied to their respective values. Credit: Haskell.org

predicate : 'a -> 'b -> bool
t1 : IntMap<'a>
t2 : IntMap<'b>
Returns: bool

IntMap.keys m

Full Usage: IntMap.keys m

Parameters:
Returns: int list

O(n). Return all keys of the map in ascending order. Credit: Haskell.org

m : IntMap<'a>
Returns: int list

IntMap.konst a arg2

Full Usage: IntMap.konst a arg2

Parameters:
    a : 'a
    arg1 : 'b

Returns: 'a
a : 'a
arg1 : 'b
Returns: 'a

IntMap.map f _arg1

Full Usage: IntMap.map f _arg1

Parameters:
    f : 'a -> 'b
    _arg1 : IntMap<'a>

Returns: IntMap<'b>

O(n). Map a function over all values in the map. Credit: Haskell.org

f : 'a -> 'b
_arg1 : IntMap<'a>
Returns: IntMap<'b>

IntMap.mapAccum f

Full Usage: IntMap.mapAccum f

Parameters:
    f : 'a -> 'b -> 'a * 'c

Returns: 'a -> IntMap<'b> -> 'a * IntMap<'c>

O(n). The function mapAccumWithKey threads an accumulating argument through the map in ascending order of keys. Credit: Haskell.org

f : 'a -> 'b -> 'a * 'c
Returns: 'a -> IntMap<'b> -> 'a * IntMap<'c>

IntMap.mapAccumWithKey f a t

Full Usage: IntMap.mapAccumWithKey f a t

Parameters:
    f : 'a -> int -> 'b -> 'a * 'c
    a : 'a
    t : IntMap<'b>

Returns: 'a * IntMap<'c>

O(n). The function mapAccum threads an accumulating argument through the map in ascending order of keys. Credit: Haskell.org

f : 'a -> int -> 'b -> 'a * 'c
a : 'a
t : IntMap<'b>
Returns: 'a * IntMap<'c>

IntMap.mapChoice f

Full Usage: IntMap.mapChoice f

Parameters:
Returns: IntMap<'a> -> IntMap<'b> * IntMap<'c>

O(n). Map values and separate the Left and Right results. Credit: Haskell.org

f : 'a -> Choice<'b, 'c>
Returns: IntMap<'a> -> IntMap<'b> * IntMap<'c>

IntMap.mapChoiceWithKey f _arg1

Full Usage: IntMap.mapChoiceWithKey f _arg1

Parameters:
Returns: IntMap<'b> * IntMap<'c>

O(n). Map keys/values and separate the Left and Right results. Credit: Haskell.org

f : int -> 'a -> Choice<'b, 'c>
_arg1 : IntMap<'a>
Returns: IntMap<'b> * IntMap<'c>

IntMap.mapKeys f

Full Usage: IntMap.mapKeys f

Parameters:
    f : int -> int

Returns: IntMap<'a> -> IntMap<'a>

O(n*min(n,W)). mapKeys f s is the map obtained by applying f to each key of s. The size of the result may be smaller if f maps two or more distinct keys to the same new key. In this case the value at the greatest of the original keys is retained. Credit: Haskell.org

f : int -> int
Returns: IntMap<'a> -> IntMap<'a>

IntMap.mapKeysWith c f

Full Usage: IntMap.mapKeysWith c f

Parameters:
    c : 'a -> 'a -> 'a
    f : int -> int

Returns: IntMap<'a> -> IntMap<'a>

O(n*log n). mapKeysWith c f s is the map obtained by applying f to each key of s. The size of the result may be smaller if f maps two or more distinct keys to the same new key. In this case the associated values will be combined using c. Credit: Haskell.org

c : 'a -> 'a -> 'a
f : int -> int
Returns: IntMap<'a> -> IntMap<'a>

IntMap.mapOption f

Full Usage: IntMap.mapOption f

Parameters:
    f : 'a -> 'b option

Returns: IntMap<'a> -> IntMap<'b>

O(n). Map values and collect the Just results. Credit: Haskell.org

f : 'a -> 'b option
Returns: IntMap<'a> -> IntMap<'b>

IntMap.mapOptionWithKey f _arg1

Full Usage: IntMap.mapOptionWithKey f _arg1

Parameters:
    f : int -> 'a -> 'b option
    _arg1 : IntMap<'a>

Returns: IntMap<'b>

O(n). Map keys/values and collect the Just results. Credit: Haskell.org

f : int -> 'a -> 'b option
_arg1 : IntMap<'a>
Returns: IntMap<'b>

IntMap.mapWithKey f _arg1

Full Usage: IntMap.mapWithKey f _arg1

Parameters:
    f : int -> 'a -> 'b
    _arg1 : IntMap<'a>

Returns: IntMap<'b>

O(n). Map a function over all values in the map. Credit: Haskell.org

f : int -> 'a -> 'b
_arg1 : IntMap<'a>
Returns: IntMap<'b>

IntMap.maxView t

Full Usage: IntMap.maxView t

Parameters:
Returns: ('a * IntMap<'a>) option

O(min(n,W)). Retrieves the maximal key of the map, and the map stripped of that element, or Nothing if passed an empty map. Credit: Haskell.org

t : IntMap<'a>
Returns: ('a * IntMap<'a>) option

IntMap.maxViewWithKey t

Full Usage: IntMap.maxViewWithKey t

Parameters:
Returns: ((int * 'a) * IntMap<'a>) option

O(log n). Retrieves the maximal (key,value) couple of the map, and the map stripped from that element. fails (in the monad) when passed an empty map. Credit: Haskell.org

t : IntMap<'a>
Returns: ((int * 'a) * IntMap<'a>) option

IntMap.mergeWithKey f g1 g2

Full Usage: IntMap.mergeWithKey f g1 g2

Parameters:
Returns: IntMap<'a> -> IntMap<'b> -> IntMap<'c>

Refer to Haskell documentation. Unexpected code growth or corruption of the data structure can occur from wrong use. Credit: Haskell.org

f : int -> 'a -> 'b -> 'c option
g1 : IntMap<'a> -> IntMap<'c>
g2 : IntMap<'b> -> IntMap<'c>
Returns: IntMap<'a> -> IntMap<'b> -> IntMap<'c>

IntMap.minView t

Full Usage: IntMap.minView t

Parameters:
Returns: ('a * IntMap<'a>) option

O(min(n,W)). Retrieves the minimal key of the map, and the map stripped of that element, or Nothing if passed an empty map. Credit: Haskell.org

t : IntMap<'a>
Returns: ('a * IntMap<'a>) option

IntMap.minViewWithKey t

Full Usage: IntMap.minViewWithKey t

Parameters:
Returns: ((int * 'a) * IntMap<'a>) option

O(log n). Retrieves the minimal (key,value) couple of the map, and the map stripped from that element. fails (in the monad) when passed an empty map. Credit: Haskell.org

t : IntMap<'a>
Returns: ((int * 'a) * IntMap<'a>) option

IntMap.notExists k m

Full Usage: IntMap.notExists k m

Parameters:
Returns: bool

O(log n). Is the key not a member of the map? Credit: Haskell.org

k : int
m : IntMap<'a>
Returns: bool

IntMap.ofArray xs

Full Usage: IntMap.ofArray xs

Parameters:
    xs : (int * 'a)[]

Returns: IntMap<'a>

O(n*min(n,W)). Create a map from an array of key/value pairs. Credit: Haskell.org

xs : (int * 'a)[]
Returns: IntMap<'a>

IntMap.ofArrayWith f xs

Full Usage: IntMap.ofArrayWith f xs

Parameters:
    f : 'a -> 'a -> 'a
    xs : (int * 'a)[]

Returns: IntMap<'a>

O(n*min(n,W)). Create a map from an array of key/value pairs with a combining function. See also fromAscListWith. Credit: Haskell.org

f : 'a -> 'a -> 'a
xs : (int * 'a)[]
Returns: IntMap<'a>

IntMap.ofArrayWithKey f xs

Full Usage: IntMap.ofArrayWithKey f xs

Parameters:
    f : int -> 'a -> 'a -> 'a
    xs : (int * 'a)[]

Returns: IntMap<'a>

O(n*min(n,W)). Build a map from an array of key/value pairs with a combining function. See also fromAscListWithKey'. Credit: Haskell.org

f : int -> 'a -> 'a -> 'a
xs : (int * 'a)[]
Returns: IntMap<'a>

IntMap.ofList xs

Full Usage: IntMap.ofList xs

Parameters:
    xs : (int * 'a) list

Returns: IntMap<'a>

O(n*min(n,W)). Create a map from a list of key/value pairs. Credit: Haskell.org

xs : (int * 'a) list
Returns: IntMap<'a>

IntMap.ofListWith f xs

Full Usage: IntMap.ofListWith f xs

Parameters:
    f : 'a -> 'a -> 'a
    xs : (int * 'a) list

Returns: IntMap<'a>

O(n*min(n,W)). Create a map from a list of key/value pairs with a combining function. See also fromAscListWith. Credit: Haskell.org

f : 'a -> 'a -> 'a
xs : (int * 'a) list
Returns: IntMap<'a>

IntMap.ofListWithKey f xs

Full Usage: IntMap.ofListWithKey f xs

Parameters:
    f : int -> 'a -> 'a -> 'a
    xs : (int * 'a) list

Returns: IntMap<'a>

O(n*min(n,W)). Build a map from a list of key/value pairs with a combining function. See also fromAscListWithKey'. Credit: Haskell.org

f : int -> 'a -> 'a -> 'a
xs : (int * 'a) list
Returns: IntMap<'a>

IntMap.ofSeq xs

Full Usage: IntMap.ofSeq xs

Parameters:
    xs : seq<int * 'a>

Returns: IntMap<'a>

O(n*min(n,W)). Create a map from a seq of key/value pairs. Credit: Haskell.org

xs : seq<int * 'a>
Returns: IntMap<'a>

IntMap.ofSeqWith f xs

Full Usage: IntMap.ofSeqWith f xs

Parameters:
    f : 'a -> 'a -> 'a
    xs : seq<int * 'a>

Returns: IntMap<'a>

O(n*min(n,W)). Create a map from a seq of key/value pairs with a combining function. See also fromAscListWith. Credit: Haskell.org

f : 'a -> 'a -> 'a
xs : seq<int * 'a>
Returns: IntMap<'a>

IntMap.ofSeqWithKey f xs

Full Usage: IntMap.ofSeqWithKey f xs

Parameters:
    f : int -> 'a -> 'a -> 'a
    xs : seq<int * 'a>

Returns: IntMap<'a>

O(n*min(n,W)). Build a map from a seq of key/value pairs with a combining function. See also fromAscListWithKey'. Credit: Haskell.org

f : int -> 'a -> 'a -> 'a
xs : seq<int * 'a>
Returns: IntMap<'a>

IntMap.partition p m

Full Usage: IntMap.partition p m

Parameters:
    p : 'a -> bool
    m : IntMap<'a>

Returns: IntMap<'a> * IntMap<'a>

O(n). partition the map according to some predicate. The first map contains all elements that satisfy the predicate, the second all elements that fail the predicate. See also split. Credit: Haskell.org

p : 'a -> bool
m : IntMap<'a>
Returns: IntMap<'a> * IntMap<'a>

IntMap.partitionWithKey predicate t

Full Usage: IntMap.partitionWithKey predicate t

Parameters:
    predicate : int -> 'a -> bool
    t : IntMap<'a>

Returns: IntMap<'a> * IntMap<'a>

O(n). partition the map according to some predicate. The first map contains all elements that satisfy the predicate, the second all elements that fail the predicate. See also split. Credit: Haskell.org

predicate : int -> 'a -> bool
t : IntMap<'a>
Returns: IntMap<'a> * IntMap<'a>

IntMap.singleton k x

Full Usage: IntMap.singleton k x

Parameters:
    k : int
    x : 'a

Returns: IntMap<'a>

O(1). A map of one element. Credit: Haskell.org

k : int
x : 'a
Returns: IntMap<'a>

IntMap.size _arg1

Full Usage: IntMap.size _arg1

Parameters:
Returns: int

O(n). Number of elements in the map. Credit: Haskell.org

_arg1 : IntMap<'a>
Returns: int

IntMap.split k t

Full Usage: IntMap.split k t

Parameters:
Returns: IntMap<'b> * IntMap<'b>

O(log n). The expression (split k map) is a pair (map1,map2) where all keys in map1 are lower than k and all keys in map2 larger than k. Any key equal to k is found in neither map1 nor map2. Credit: Haskell.org

k : int
t : IntMap<'b>
Returns: IntMap<'b> * IntMap<'b>

IntMap.splitTryFind k t

Full Usage: IntMap.splitTryFind k t

Parameters:
Returns: IntMap<'a> * 'a option * IntMap<'a>

O(log n). Performs a split but also returns whether the pivot key was found in the original map. Credit: Haskell.org

k : int
t : IntMap<'a>
Returns: IntMap<'a> * 'a option * IntMap<'a>

IntMap.toArray m

Full Usage: IntMap.toArray m

Parameters:
Returns: (int * 'a)[]

O(n). Convert the map to an array of key/value pairs. Credit: Haskell.org

m : IntMap<'a>
Returns: (int * 'a)[]

IntMap.toList m

Full Usage: IntMap.toList m

Parameters:
Returns: (int * 'a) list

O(n). Convert the map to a list of key/value pairs. Credit: Haskell.org

m : IntMap<'a>
Returns: (int * 'a) list

IntMap.toSeq m

Full Usage: IntMap.toSeq m

Parameters:
Returns: seq<int * 'a>

O(n). Convert the map to a seq of key/value pairs. Credit: Haskell.org

m : IntMap<'a>
Returns: seq<int * 'a>

IntMap.tryFind k _arg1

Full Usage: IntMap.tryFind k _arg1

Parameters:
Returns: 'c option

O(min(n,W)). Lookup the value at a key in the map. Returns 'T option. Credit: Haskell.org

k : int
_arg1 : IntMap<'c>
Returns: 'c option

IntMap.tryFindGE k t

Full Usage: IntMap.tryFindGE k t

Parameters:
Returns: (int * 'a) option

O(log n). Find smallest key greater or equal to the given one and return the corresponding (key, value) pair Credit: Haskell.org

k : int
t : IntMap<'a>
Returns: (int * 'a) option

IntMap.tryFindGT k t

Full Usage: IntMap.tryFindGT k t

Parameters:
Returns: (int * 'a) option

O(log n). Find smallest key greater than the given one and return the corresponding (key, value) pair. Credit: Haskell.org

k : int
t : IntMap<'a>
Returns: (int * 'a) option

IntMap.tryFindLE k t

Full Usage: IntMap.tryFindLE k t

Parameters:
Returns: (int * 'a) option

O(log n). Find largest key smaller or equal to the given one and return the corresponding (key, value) pair. Credit: Haskell.org

k : int
t : IntMap<'a>
Returns: (int * 'a) option

IntMap.tryFindLT k t

Full Usage: IntMap.tryFindLT k t

Parameters:
Returns: (int * 'a) option

O(log n). Find largest key smaller than the given one and return the corresponding (key, value) pair. Credit: Haskell.org

k : int
t : IntMap<'a>
Returns: (int * 'a) option

IntMap.update f k m

Full Usage: IntMap.update f k m

Parameters:
    f : 'b -> 'b option
    k : int
    m : IntMap<'b>

Returns: IntMap<'b>

O(min(n,W)). The expression (update f k map) updates the value x at k (if it is in the map). If (f x) is Nothing, the element is deleted. If it is (Just y), the key k is bound to the new value y. Credit: Haskell.org

f : 'b -> 'b option
k : int
m : IntMap<'b>
Returns: IntMap<'b>

IntMap.updateMax f

Full Usage: IntMap.updateMax f

Parameters:
    f : 'a -> 'a option

Returns: IntMap<'a> -> IntMap<'a>

O(log n). Update the value at the maximal key. Credit: Haskell.org

f : 'a -> 'a option
Returns: IntMap<'a> -> IntMap<'a>

IntMap.updateMaxWithKey f t

Full Usage: IntMap.updateMaxWithKey f t

Parameters:
    f : int -> 'a -> 'a option
    t : IntMap<'a>

Returns: IntMap<'a>

O(log n). Update the value at the maximal key. Credit: Haskell.org

f : int -> 'a -> 'a option
t : IntMap<'a>
Returns: IntMap<'a>

IntMap.updateMin f

Full Usage: IntMap.updateMin f

Parameters:
    f : 'a -> 'a option

Returns: IntMap<'a> -> IntMap<'a>

O(log n). Update the value at the minimal key. Credit: Haskell.org

f : 'a -> 'a option
Returns: IntMap<'a> -> IntMap<'a>

IntMap.updateMinWithKey f t

Full Usage: IntMap.updateMinWithKey f t

Parameters:
    f : int -> 'a -> 'a option
    t : IntMap<'a>

Returns: IntMap<'a>

O(log n). Update the value at the minimal key. Credit: Haskell.org

f : int -> 'a -> 'a option
t : IntMap<'a>
Returns: IntMap<'a>

IntMap.updateTryFindWithKey f k t

Full Usage: IntMap.updateTryFindWithKey f k t

Parameters:
    f : int -> 'a -> 'a option
    k : int
    t : IntMap<'a>

Returns: 'a option * IntMap<'a>

O(min(n,W)). Lookup and update. Credit: Haskell.org

f : int -> 'a -> 'a option
k : int
t : IntMap<'a>
Returns: 'a option * IntMap<'a>

IntMap.updateWithKey f k t

Full Usage: IntMap.updateWithKey f k t

Parameters:
    f : int -> 'a -> 'a option
    k : int
    t : IntMap<'a>

Returns: IntMap<'a>

O(min(n,W)). The expression (update f k map) updates the value x at k (if it is in the map). If (f k x) is Nothing, the element is deleted. If it is (Just y), the key k is bound to the new value y. Credit: Haskell.org

f : int -> 'a -> 'a option
k : int
t : IntMap<'a>
Returns: IntMap<'a>

IntMap.values m

Full Usage: IntMap.values m

Parameters:
Returns: 'a list

O(n). Return all elements of the map in the ascending order of their keys. Credit: Haskell.org

m : IntMap<'a>
Returns: 'a list