elementLens

fun <T, I> elementLens(element: T, idProvider: IdProvider<T, I>): Lens<List<T>, T>

creates a Lens pointing to a certain element in a list

Parameters

element

current instance of the element to focus on

idProvider

to identify the element in the list (i.e. when it's content changes over time)