IMap<K, V> class

Implemented types

Constructors

IMap.empty(Order<K> _order)
IMap.from(Order<K> kOrder, Map<K, V> m)
factory
IMap.fromIterables(Iterable<K> keys, Iterable<V> values, Order<K> kOrder)
factory
IMap.fromPairs(FoldableOps<dynamic, Tuple2<K, V>> foldableOps, Order<K> kOrder)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
no setter
order Order<K>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

all(bool f(V v)) bool
override
any(bool f(V v)) bool
override
cata<B>(B z, B ifEmpty(B b), B ifNonEmpty(B b, K k, V v, B cataLeft(B b), B cataRight(B b))) → B
concatenate(Monoid<V> mi) → V
override
concatenateO(Semigroup<V> si) Option<V>
override
every(bool f(V v)) bool
override
foldLeft<B>(B z, B f(B previous, V v)) → B
override
foldLeftKV<B>(B z, B f(B previous, K k, V v)) → B
foldLeftKVBetween<B>(K minK, K maxK, B z, B f(B previous, K k, V v)) → B
foldLeftWithIndex<B>(B z, B f(B previous, int i, V a)) → B
override
foldMap<B>(Monoid<B> bMonoid, B f(V v)) → B
override
foldMapKV<B>(Monoid<B> mi, B f(K k, V v)) → B
foldMapO<B>(Semigroup<B> si, B f(V a)) Option<B>
override
foldRight<B>(B z, B f(V v, B previous)) → B
override
foldRightKV<B>(B z, B f(K k, V v, B previous)) → B
foldRightKVBetween<B>(K minK, K maxK, B z, B f(K k, V v, B previous)) → B
foldRightWithIndex<B>(B z, B f(int i, V a, B previous)) → B
override
forEach(void sideEffect(V v)) → void
forEachKV(void sideEffect(K k, V v)) → void
get(K k) Option<V>
getKey(K k) Option<K>
intercalate(Monoid<V> mi, V v) → V
override
iterator() Iterator<Tuple2<K, V>>
keyIterable() Iterable<K>
keyIterator() Iterator<K>
keys() IList<K>
length() int
override
map<V2>(V2 f(V v)) IMap<K, V2>
override
mapKV<V2>(V2 f(K k, V v)) IMap<K, V2>
mapWithIndex<B>(B f(int i, V a)) IMap<K, B>
override
mapWithKey<V2>(V2 f(K k, V v)) IMap<K, V2>
max() Option<Tuple2<K, V>>
maximum(Order<V> ov) Option<V>
override
maxKey() Option<K>
maxLessThan(K k) Option<Tuple2<K, V>>
min() Option<Tuple2<K, V>>
minGreaterThan(K k) Option<Tuple2<K, V>>
minimum(Order<V> ov) Option<V>
override
minKey() Option<K>
modify(K k, V f(V v), V dflt) IMap<K, V>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pairIterable() Iterable<Tuple2<K, V>>
pairIterator() Iterator<Tuple2<K, V>>
pairs() IList<Tuple2<K, V>>
put(K k, V v) IMap<K, V>
remove(K k) IMap<K, V>
set(K k, V v) Option<IMap<K, V>>
setIfPresent(K k, V v) IMap<K, V>
strengthL<B>(B b) IMap<K, Tuple2<B, V>>
override
strengthR<B>(B b) IMap<K, Tuple2<V, B>>
override
toIterable() Iterable<Tuple2<K, V>>
toMap() Map<K, V>
toString() String
A string representation of this object.
override
valueIterable() Iterable<V>
valueIterator() Iterator<V>
values() IList<V>
zipWithIndex() IMap<K, Tuple2<int, V>>
override

Operators

operator ==(Object other) bool
The equality operator.
override
operator [](K k) Option<V>