toggle menu
http4k
LOCAL
jvm
switch theme
search in API
http4k-core
/
org.http4k.lens
/
LensBuilder
/
optional
optional
abstract
fun
optional
(
name
:
String
,
description
:
String
?
=
null
,
metadata
:
Map
<
String
,
Any
>
=
emptyMap()
)
:
Lens
<
IN
,
OUT
?
>
Make a concrete Lens for this spec that looks for an optional value in the target.