format

inline fun <P> format(crossinline parse: (String) -> P, crossinline format: (P) -> String): Lens<P, String>

creates a Lens converting P to and from a String

Parameters

parse

function for parsing a String to P

format

function for formatting a P to String