toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
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
>
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
>