aurorafw ~master (2020-10-29T20:10:48Z)
Dub
Repo
toOptional
aurorafw
stdx
typecons
Converts a input range into an optional type
auto
toOptional
(R range)
auto
toOptional
(
R
)
(
auto
ref
R
range
)
if
(
isInputRange
!
R
||
is
(
R
==
void
[])
)
auto
toOptional
(Nullable!T nullable)
Parameters
range
R
given input range
Meta
Source
See Implementation
aurorafw
stdx
typecons
functions
getOr
none
oc
optional
some
toNullable
toOptional
structs
None
Optional
OptionalChain
templates
isOptional
match
Converts a input range into an optional type