mapByElement

fun <D, I> Inspector<List<D>>.mapByElement(element: D, idProvider: IdProvider<D, I>): Inspector<D>

Creates a new Inspector containing the element for the given element and idProvider from the original Inspector's List.

Parameters

element

current instance of the entity to focus on

idProvider

to identify the same entity (i.e. when it's content changed)

fun <D, I> Store<List<D>>.mapByElement(element: D, idProvider: IdProvider<D, I>): Store<D>

Creates a new Store containing the element for the given element and idProvider from the original Store's List.

Parameters

element

current instance of the entity to focus on

idProvider

to identify the same entity (i.e. when it's content changed)