lens Of
fun <T, I> lensOf(element: T, idProvider: IdProvider<T, I>): Lens<List<T>, T>
Content copied to clipboard
creates a Lens pointing to a certain element in a List
Parameters
element
current instance of the element to focus on
id Provider
to identify the element in the list (i.e. when it's content changes over time)
creates a Lens pointing to a certain position in a list
Parameters
index
position to focus on
creates a Lens pointing to a certain element in a Map
Parameters
key
of the entry to focus on