Class WrapBinaryFold<TReal>
Wrap a C# function that takes two arguments and returns one value as a Fluency function. This is different from WrapBinary<TRealTop, TRealBottom, TRealOut> because it implements a fold operation- that is:
- Read two values from the top. Do the operation on both of them. Store that value.
- Read new values and do them on the stored value until you either finish or hit the short circuit value and stop.
- This is how All and Any are implemented.
Inheritance
System.Object
WrapBinaryFold<TReal>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fluency.Execution.Functions.BuiltIn
Assembly: Execution.dll
Syntax
public class WrapBinaryFold<TReal> : ITopIn, ITopOut, IFunction
Type Parameters
| Name | Description |
|---|---|
| TReal |
Constructors
| Improve this Doc View SourceWrapBinaryFold(Func<TReal, TReal, TReal>, FluencyType, String, Value[], Value)
Declaration
public WrapBinaryFold(Func<TReal, TReal, TReal> function, FluencyType returnType, string name, Value[] arguments, Value shortCircuitOn = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<TReal, TReal, TReal> | function | |
| FluencyType | returnType | |
| System.String | name | |
| Value[] | arguments | |
| Value | shortCircuitOn |
Properties
| Improve this Doc View SourceBottomInput
Declaration
public GetNext BottomInput { set; }
Property Value
| Type | Description |
|---|---|
| GetNext |
Name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TopInput
Declaration
public GetNext TopInput { set; }
Property Value
| Type | Description |
|---|---|
| GetNext |
Methods
| Improve this Doc View SourceTop()
Declaration
public Value Top()
Returns
| Type | Description |
|---|---|
| Value |