mapIndexed

@NotNull
open fun <K, V, R> mapIndexed(@NotNull map: @NotNull Map<K, V>, @NotNull function: @NotNull CollectionUtil.IndexedFunction<Map.Entry<K, V>, R>): @NotNull Stream<R>

Maps some collection with map index

Return

mapped stream

Parameters

map

map

function

mapper

<K>

key

<V>

value

<R>

return value


@NotNull
open fun <E, R> mapIndexed(@NotNull collection: @NotNull Collection<E>, @NotNull function: @NotNull CollectionUtil.IndexedFunction<E, R>): @NotNull Stream<R>

Maps some collection with map index

Return

mapped stream

Parameters

collection

collection

function

mapper

<E>

element

<R>

return value


@NotNull
open fun <E, R> mapIndexed(@NotNull stream: @NotNull Stream<E>, @NotNull function: @NotNull CollectionUtil.IndexedFunction<E, R>): @NotNull Stream<R>

Maps some collection with map index

Return

mapped stream

Parameters

stream

stream

function

mapper

<E>

element

<R>

return value