-
Notifications
You must be signed in to change notification settings - Fork 15
Unit
James edited this page Jun 3, 2020
·
3 revisions
SuccincT.Functional.Unit
Singleton value class that encapsulates the unit
value used by Succinc<T> to convert between Action
and Func
expressions.
Unit.unit
The sole implemented value of Unit
. This value is returned by the ToUnitFunc
methods. It is unlikely that you'll need to access this value directly, but it's publicly exposed in case you do.
Unit.Ignore<T>(T anything)
- As of v4, this method has been removed as it's now possible (from C# 7) to just use a discard for this: _ = anything;
Action
/Func
conversionsCycle
methods- Converting between
Action
andFunc
- Extension methods for existing types that use
Option<T>
- Indexed enumerations
IEnumerable<T>
cons- Option-based parsers
- Partial function applications
- Pattern matching
- Pipe Operators
- Typed lambdas
Any
Either<TLeft,TRight>
None
Option<T>
Success<T>
Union<T1,T2>
Union<T1,T2,T3>
Union<T1,T2,T3,T4>
Unit
ValueOrError