public static class OptionExtensionsLinq| FilterMapUnwrapT |
Returns unwrapped values of the optionals of Some variant in the collection.
C# |
| FirstOrNoneT(IEnumerableT) |
Returns Some of the first element of the collection if it is non-empty; None otherwise.
C# |
| FirstOrNoneT(IEnumerableT, FuncT, Boolean) |
Returns Some of the first element of the collection satisfying the filter if any; None otherwise.
C# |
| GetT(T, Int32) |
Returns Some of the element at the given index of the array if it is a valid index; None otherwise.
C# |
| GetT(MemoryT, Void) | |
| GetT(ReadOnlyMemoryT, Void) | |
| GetT(ReadOnlySpanT, Void) | |
| GetT(SpanT, Void) | |
| GetK, V(DictionaryTKey, TValue, Boolean) | |
| GetT, L(L, Int32) |
Returns Some of the element at the given index of the list if it is a valid index; None otherwise.
C# |
| GetNonEnumeratedCountT |
Returns Some of the count of elements in the collection if the count is readily available without enumeration;
None otherwise.
C# |
| LastOrNoneT(IEnumerableT) |
Returns Some of the last element of the collection if it is non-empty; None otherwise.
C# |
| LastOrNoneT(IEnumerableT, FuncT, Boolean) |
Returns Some of the last element of the collection satisfying the filter if any; None otherwise.
C# |
| MapUnwrapT |