map

fun <R> map(desc: String? = expectedDesc, f: (T) -> R?): OptionBuilder<R?>(source)

Maps the parsed value using the specified transformation function. For non-nullable builders (from .default() or .required()), preserves non-nullable type when transformation returns non-null. For nullable builders, always returns nullable type.