some

Undocumented in source. Be warned that the author may not have intended to support it.
some
(
T
string prettyFun = __PRETTY_FUNCTION__
string funName = __FUNCTION__
)
()

Examples

static assert(__traits(compiles, () => 10.some));
static assert(is(typeof(() { return 10.some; } ()) == Some!int));
static assert(__traits(compiles, function Optional!int () => 10.some));

Meta