Table of contents
Collapse the table of content
Expand the table of content

OperatorIntrinsics.RangeStepGeneric<'Step,'T> Function (F#)

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

Generates a range of values using the given zero, add, start, step and stop values.

Namespace/Module Path: Microsoft.FSharp.Core.Operators.OperatorIntrinsics

Assembly: FSharp.Core (in FSharp.Core.dll)


// Signature:
RangeStepGeneric : 'Step -> ('T -> 'Step -> 'T) -> 'T -> 'Step -> 'T -> seq<'T>

// Usage:
RangeStepGeneric zero add start step stop


zero Type: 'Step

The zero value for the step type.

add Type: 'T -> 'Step -> 'T

An addition function that adds a value and the step to produce another value.

start Type: 'T

The starting value.

step Type: 'Step

The increment to the value on each iteration.

stop Type: 'T

The final value.

Return Value

An enumerable sequence of values starting with start, incrementing by step, and ending with stop.


This function is for use by compiled F# code and should not be used directly.


Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable, Portable

See Also

Operators.OperatorIntrinsics Module (F#)

Core.Operators Module (F#)

© 2020 Microsoft