mapForNullable
Return the result of transformer with using input as an argument for it if input is not null
,
Otherwise, return null
.
U
must not beNullable<*>
.- If you'd like return
Nullable<*>
asU
, useandThen()
. - If the result of transformer is
null
, this throw anError
.
- If you'd like return