arrow-core-data / arrow.core / MapK

MapK

@higherkind data class MapK<K, out A> : Map<K, A>

Constructors

<init> MapK(map: Map<K, A>)

Functions

ap fun <B> ap(ff: MapK<K, (A) -> B>): MapK<K, B>
ap2 fun <B, Z> ap2(f: MapK<K, (A, B) -> Z>, fb: MapK<K, B>): Map<K, Z>
equals fun equals(other: Any?): Boolean
flatMap fun <B> flatMap(f: (A) -> MapK<K, B>): MapK<K, B>
foldLeft fun <B> foldLeft(b: B, f: (B, A) -> B): B
fun <B> foldLeft(b: MapK<K, B>, f: (MapK<K, B>, Tuple2<K, A>) -> MapK<K, B>): MapK<K, B>
foldRight fun <B> foldRight(b: Eval<B>, f: (A, Eval<B>) -> Eval<B>): Eval<B>
hashCode fun hashCode(): Int
map fun <B> map(f: (A) -> B): MapK<K, B>
map2 fun <B, Z> map2(fb: MapK<K, B>, f: (A, B) -> Z): MapK<K, Z>
map2Eval fun <B, Z> map2Eval(fb: Eval<MapK<K, B>>, f: (A, B) -> Z): Eval<MapK<K, Z>>
show fun show(SK: Show<K>, SA: Show<A>): String
toString fun toString(): String
traverse fun <G, B> traverse(GA: Applicative<G>, f: (A) -> Kind<G, B>): Kind<G, MapK<K, B>>

Extension Functions

updated fun <K, A> MapK<K, A>.updated(k: K, value: A): MapK<K, A>

Do you like Arrow?

Arrow Org
<