List<'T>
obj
IStructuralEquatable
, IComparable<List<'T>>
, IComparable
, IStructuralComparable
, IReadOnlyList<'T>
, IReadOnlyCollection<'T>
, IEnumerable<'T>
, IEnumerable
The type of immutable singly-linked lists.
See the List module for further operations related to lists. Use the constructors []
and ::
(infix) to create values of this type, or the notation [1; 2; 3]
. Use the values in the List
module to manipulate values of this type, or pattern match against the values directly. See also F# Language Guide - Lists.
Full Usage:
this.Head
Returns: 'T
Gets the first element of the list
'T
Full Usage:
this.IsEmpty
Returns: bool
Gets a value indicating if the list contains no entries
bool
Full Usage:
this[index]
Parameters:
int
- The index.
'T
The value at the given index.
Gets the element of the list at the given position.
Lists are represented as linked lists so this is an O(n) operation.
int
The index.
'T
The value at the given index.
Full Usage:
this.Length
Returns: int
Gets the number of items contained in the list
int
Full Usage:
this.Tail
Returns: 'T list
Gets the tail of the list, which is a list containing all the elements of the list, excluding the first element
'T list
Full Usage:
List.Empty
Returns: 'T list
Returns an empty list of a particular type
'T list
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4