Delen via


OperatorIntrinsics.RangeGeneric<'T> Function (F#)

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:
RangeGeneric : 'T -> ('T -> 'T -> 'T) -> 'T -> 'T -> seq<'T>

// Usage:
RangeGeneric one add start stop

Parameters

  • one
    Type: 'T

    The value representing 1 for the type parameter.

  • add
    Type: 'T -> 'T -> 'T

    A function that performs addition to the type parameter.

  • start
    Type: 'T

    The start of the range.

  • stop
    Type: 'T

    The end of the range.

Return Value

An enumerable sequence representing a range of values.

Remarks

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

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Operators.OperatorIntrinsics Module (F#)

Core.Operators Module (F#)