pathFor

fun <Case : Root, Value> pathFor(constructor: (Value) -> Case): CaseKeyPath<Root, Value>

Creates a CaseKeyPath for a unary data-class case constructor.


Creates a CaseKeyPath for a binary data-class case constructor, focused as an ordered Pair.


Creates a CaseKeyPath for a ternary data-class case constructor, focused as an ordered Triple.