NullableSpan<T>.Map<TResult>(NullableSpan<T>.MapReadOnlyFunc<TResult>) Method
Maps a
NullableSpan<T> to another value by applying a function to the
contained value, or returns an empty value if there is no value.
Namespace: Ookii.CommonAssembly: Ookii.Common (in Ookii.Common.dll) Version: 1.0.0+7c2900b8a16cd8ae46bdd79d8f105034712c5fa3
public NullableReadOnlySpan<TResult> Map<TResult>(
NullableSpan<T>.MapReadOnlyFunc<TResult> mapFunc
)
Public Function Map(Of TResult) (
mapFunc As NullableSpan<T>.MapReadOnlyFunc(Of TResult)
) As NullableReadOnlySpan(Of TResult)
Dim instance As NullableSpan
Dim mapFunc As NullableSpan<T>.MapReadOnlyFunc(Of TResult)
Dim returnValue As NullableReadOnlySpan(Of TResult)
returnValue = instance.Map(mapFunc)
public:
generic<typename TResult>
NullableReadOnlySpan<TResult> Map(
NullableSpan<T>.MapReadOnlyFunc<TResult>^ mapFunc
)
- mapFunc NullableSpan<T>.MapReadOnlyFunc<TResult>
- The function to apply to the contained value.
- TResult
-
The type of the items in the resulting NullableReadOnlySpan<T>.
NullableReadOnlySpan<TResult>
If the
HasValue property is
true, the result of applying
mapFunc to the
Value property; otherwise, an empty
NullableSpan<T>.
The function mapFunc is only called if the HasValue
property is true.