caseKeyPath
fun <Root, Value> caseKeyPath(id: PathId, valueType: TypeId, match: (Root) -> CaseMatch<Value>, embed: (Value) -> Root): CaseKeyPath<Root, Value>
Creates a read-only exact CaseKeyPath.
inline fun <Root, Value> caseKeyPath(id: PathId, noinline match: (Root) -> CaseMatch<Value>, noinline embed: (Value) -> Root): CaseKeyPath<Root, Value>
Creates a read-only exact CaseKeyPath while capturing its complete focus type token.
Creates an independently embeddable whole-case CaseKeyPath for a concrete subtype of a sealed root.
Creates an independently embeddable whole-case CaseKeyPath for one Enum entry, focused as Unit.
inline fun <Root : Any, Case : Root, Value> caseKeyPath(extract: KProperty1<Case, Value>, noinline embed: (Value) -> Case): CaseKeyPath<Root, Value>
Creates an independently embeddable CaseKeyPath for one case payload property.
inline fun <Root : Any, Case : Root, First, Second> caseKeyPath(extract1: KProperty1<Case, First>, extract2: KProperty1<Case, Second>, noinline embed: (First, Second) -> Case): CaseKeyPath<Root, Pair<First, Second>>
Creates an independently embeddable CaseKeyPath focused as an ordered Pair of two case properties.
inline fun <Root : Any, Case : Root, First, Second, Third> caseKeyPath(extract1: KProperty1<Case, First>, extract2: KProperty1<Case, Second>, extract3: KProperty1<Case, Third>, noinline embed: (First, Second, Third) -> Case): CaseKeyPath<Root, Triple<First, Second, Third>>
Creates an independently embeddable CaseKeyPath focused as an ordered Triple of three case properties.