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 SourceStepper<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 |
Type Parameters
| Name | Description |
|---|---|
| T | The type of value to traverse. |
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 |
Type Parameters
| Name | Description |
|---|---|
| T | The type of value to traverse. |
| TStep | The type of function to invoke on every |
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 |
|
Returns
| Type | Description |
|---|---|
| StepStatus | The status of the traversal. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of value to traverse. |