api

http4k / org.http4k.lens / LensSpec / map

map

fun <NEXT> map(nextIn: (OUT) -> NEXT): LensSpec<IN, NEXT>

Create another LensSpec which applies the uni-directional transformation to the result. Any resultant Lens can only be used to extract the final type from a target.