Show / Hide Table of Contents

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>
Implements
ITopIn
ITopOut
IFunction
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 Source

WrapBinaryFold(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 Source

BottomInput

Declaration
public GetNext BottomInput { set; }
Property Value
Type Description
GetNext
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TopInput

Declaration
public GetNext TopInput { set; }
Property Value
Type Description
GetNext

Methods

| Improve this Doc View Source

Top()

Declaration
public Value Top()
Returns
Type Description
Value

Implements

ITopIn
ITopOut
IFunction

Extension Methods

ExecutionExtensions.Is<T>(IFunction, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX