Logo Euclid

IList Module

An internal module with optimized unchecked functions for working with IList<'T> in Fable JS.

Functions and values

Function or value Description

count iList

Full Usage: count iList

Parameters:
Returns: int
Modifiers: inline
Type parameters: 'T

Just like iList.Count, but optimized to plain `iList.length` in Fable Release.

iList : IList<'T>
Returns: int

getIdx idx iList

Full Usage: getIdx idx iList

Parameters:
    idx : int
    iList : IList<'T>

Returns: 'T
Modifiers: inline
Type parameters: 'T

just iList.[idx], but optimized and unchecked in Fable Release. In Fable an IList is a JS array, or a typed array like a Float64Array for an array of numbers. The IList indexer of Fable reads it with $0[$1] too, after a bounds check.

idx : int
iList : IList<'T>
Returns: 'T

Type something to start searching.