lens

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

convenience function to create a Lens

Parameters

id

of the Lens

getter

of the Lens

setter

of the Lens