http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-core
/
org.http4k.lens
/
composite
composite
inline
fun
<
TARGET
:
Any
,
T
>
BiDiLensSpec
<
TARGET
,
String
>
.
composite
(
crossinline
fn
:
BiDiLensSpec
<
TARGET
,
String
>
.
(
TARGET
)
->
T
)
:
Lens
<
TARGET
,
T
>
(
source
)
This allows creation of a composite object from several values from the same source.
inline
fun
<
TARGET
:
Any
,
T
>
BiDiLensSpec
<
TARGET
,
String
>
.
composite
(
crossinline
getFn
:
BiDiLensSpec
<
TARGET
,
String
>
.
(
TARGET
)
->
T
,
crossinline
setFn
:
T
.
(
TARGET
)
->
TARGET
)
:
BiDiLens
<
TARGET
,
T
>
(
source
)