Table of contents
TOC
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)

Syntax

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

// Usage:
RangeStepGeneric zero add start step stop

Parameters

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.

Remarks

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

Platforms

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#)

© 2018 Microsoft