Show / Hide Table of Contents

Class Steppable

Static members for ISteppable<T>.

Inheritance
System.Object
Steppable
Namespace: Towel
Assembly: Towel.dll
Syntax
public static class Steppable : object

Methods

| Improve this Doc View Source

Stepper<T>(ISteppable<T>, Action<T>)

Traverses values and invokes a function on every T value.

Declaration
public static void Stepper<T>(this ISteppable<T> steppable, Action<T> step)
Parameters
Type Name Description
ISteppable<T> steppable

The values to step though.

Action<T> step

The function to invoke on every T value.

Type Parameters
Name Description
T

The type of value to traverse.

| Improve this Doc View Source

Stepper<T, TStep>(ISteppable<T>, TStep)

Traverses values and invokes a function on every T value.

Declaration
public static void Stepper<T, TStep>(this ISteppable<T> steppable, TStep step = default(TStep))
    where TStep : struct, IAction<T>
Parameters
Type Name Description
ISteppable<T> steppable

The values to step though.

TStep step

The function to invoke on every T value.

Type Parameters
Name Description
T

The type of value to traverse.

TStep

The type of function to invoke on every T value.

| Improve this Doc View Source

StepperBreak<T>(ISteppable<T>, Func<T, StepStatus>)

Traverses values and invokes a function on every T value.

Declaration
public static StepStatus StepperBreak<T>(this ISteppable<T> steppable, Func<T, StepStatus> step)
Parameters
Type Name Description
ISteppable<T> steppable

The values to step though.

Func<T, StepStatus> step

The function to invoke on every T value.

Returns
Type Description
StepStatus

The status of the traversal.

Type Parameters
Name Description
T

The type of value to traverse.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX