buildLens

inline fun <P, T> buildLens(id: String, crossinline getter: (P) -> T, crossinline setter: (P, T) -> P): Lens<P, T>

convenience function to create a Lens

Parameters

getter

of the Lens

id

of the Lens

setter

of the Lens