mapped Nullable value.
import std.conv : to; Nullable!int value = 100.nullable; auto mapped = value.getMap!((v) => v.to!string); static assert(is(typeof(mapped) == Nullable!string)); assert(!mapped.isNull); assert(mapped.get == "100"); assert(Nullable!int.init.getMap!((v) => v.to!string).isNull);
Get and map Nullable content.