List<T>

Overview

List structure class.

Location

  • Reference:
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:
    • List<T>  Island
    • Foundation.NSMutableArray  Toffee, ToffeeV2
    • System.Collections.Generic.List  .NET, .NET Standard 2.0
    • java.util.ArrayList  Cooper
  • Ancestry:

Implements

 

constructor    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor

 

List<T>()

 

init()

 

List<T>()

 

Sub New()

constructor (ImmutableList<T>)    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor(Items: ImmutableList<T>)

 

List<T>(ImmutableList<T> Items)

 

init(_ Items: ImmutableList<T>)

 

List<T>(ImmutableList<T> Items)

 

Sub New(Items As ImmutableList<T>)

Parameters:

  • Items:

constructor (Iterable<T>)    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor(Items: IEnumerable<T>)

 

List<T>(IEnumerable<T> Items)

 

// Toffee
init(_ Items: INSFastEnumeration<T>)
// ToffeeV2
init(_ Items: IEnumerable<T>)

 

List<T>(Iterable<T> Items)

 

Sub New(Items As IEnumerable<T>)

Parameters:

  • Items:

constructor (array of T)    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor(params anArray: array of T)

 

List<T>(params T[] anArray)

 

init(_ anArray: T...)

 

List<T>(T[]... anArray)

 

Sub New(ParamArray anArray As T())

Parameters:

  • anArray:

constructor withCapacity(Int32)

Creates a new isntance with a given capacity.

 

constructor withCapacity(aCapacity: Int32)

 

List<T> withCapacity(Int32 aCapacity)

 

init(withCapacity aCapacity: Int32)

 

List<T> withCapacity(Integer aCapacity)

 

Sub New withCapacity(aCapacity As Int32)

Parameters:

  • aCapacity:

constructor withRepeatedValue(T, Int32)

Creates a new instance with the value aValue repeated aCount times.

 

constructor withRepeatedValue(aValue: T; aCount: Int32)

 

List<T> withRepeatedValue(T aValue, Int32 aCount)

 

init(withRepeatedValue aValue: T, _ aCount: Int32)

 

List<T> withRepeatedValue(T aValue, Integer aCount)

 

Sub New withRepeatedValue(aValue As T, aCount As Int32)

Parameters:

  • aValue:
  • aCount:

Add (T): T

Add an item to the list.

 

method Add(aItem: T): T

 

T Add(T aItem)

 

func Add(_ aItem: T) -> T

 

T Add(T aItem)

 

Function Add(aItem As T) As T

Parameters:

  • aItem:

Add (nullable ImmutableList<T>)

Add a sequence of items to the list.

 

// Island-UIKit for Mac-x86_64
method Add(Items: nullable ImmutableList<T>)
// .NET, .NET Standard 2.0
method Add(Items: nullable ImmutableList<T>)
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
method Add(Items: nullable RemObjects.Elements.RTL.ImmutableList<T>)

 

// Island-UIKit for Mac-x86_64
void Add(ImmutableList<T>? Items)
// .NET, .NET Standard 2.0
void Add(ImmutableList<T>? Items)
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
void Add(RemObjects.Elements.RTL.ImmutableList<T>? Items)

 

// Toffee
func Add(_ Items: ImmutableList<T>)
// ToffeeV2-UIKit for Mac-x86_64
func Add(_ Items: ImmutableList<T>?)
// ToffeeV2-iOS, ToffeeV2-iOS Simulator-x86_64, ToffeeV2-Mac Catalyst, ToffeeV2-macOS, ToffeeV2-tvOS, ToffeeV2-tvOS Simulator-x86_64, ToffeeV2-watchOS, ToffeeV2-watchOS Simulator
func Add(_ Items: RemObjects.Elements.RTL.ImmutableList<T>?)

 

void Add(ImmutableList<T> Items)

 

// Island-UIKit for Mac-x86_64
Sub Add(Items As ImmutableList<T>?)
// .NET, .NET Standard 2.0
Sub Add(Items As ImmutableList<T>?)
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
Sub Add(Items As RemObjects.Elements.RTL.ImmutableList<T>?)

Parameters:

  • Items:

Add (nullable IEnumerable<T>)

Add a sequence of items to the list.

 

method Add(Items: nullable IEnumerable<T>)

 

void Add(IEnumerable<T>? Items)

 

// Toffee
func Add(_ Items: INSFastEnumeration<T>)
// ToffeeV2
func Add(_ Items: IEnumerable<T>?)

 

void Add(Iterable<T> Items)

 

Sub Add(Items As IEnumerable<T>?)

Parameters:

  • Items:

Add (nullable RemObjects.Elements.RTL.List<T>) ToffeeV2

Add a sequence of items to the list.

 

// ToffeeV2-UIKit for Mac-x86_64
func Add(_ Items: List<T>?)
// ToffeeV2-iOS, ToffeeV2-iOS Simulator-x86_64, ToffeeV2-Mac Catalyst, ToffeeV2-macOS, ToffeeV2-tvOS, ToffeeV2-tvOS Simulator-x86_64, ToffeeV2-watchOS, ToffeeV2-watchOS Simulator
func Add(_ Items: RemObjects.Elements.RTL.List<T>?)

Parameters:

  • Items:

Add (array of T) Cooper, Island, Toffee, ToffeeV2

Add an array of items to the list.

 

method Add(params Items: nullable array of T)

 

void Add(params T[]? Items)

 

// Toffee
func Add(_ Items: T...)
// ToffeeV2
func Add(_ Items: T...?...)

 

void Add(T[]... Items)

 

Sub Add(ParamArray Items As T()?)

Parameters:

  • Items:

Add (nullable array of T) .NET, .NET Standard 2.0

 

method Add(params Items: nullable array of T)

 

void Add(params T[]? Items)

 

func Add(_ Items: T...?...)

 

Sub Add(ParamArray Items As T()?)

Parameters:

  • Items:

Contains    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns true if this list contains aItem.

 

method Contains(aItem: T): Boolean

 

Boolean Contains(T aItem)

 

func Contains(_ aItem: T) -> Boolean

 

Boolean Contains(T aItem)

 

Function Contains(aItem As T) As Boolean

Parameters:

  • aItem:

Count    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the item count in this list.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

Exists    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns true if this list contains an element matching the predicate.

 

method Exists(Match: Predicate<T>): Boolean

 

Boolean Exists(Predicate<T> Match)

 

func Exists(_ Match: Predicate<T>) -> Boolean

 

Boolean Exists(Predicate<T> Match)

 

Function Exists(Match As Predicate<T>) As Boolean

Parameters:

  • Match:

Find    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the first match that matches the predicate.

 

method Find(Match: Predicate<T>): T

 

T Find(Predicate<T> Match)

 

func Find(_ Match: Predicate<T>) -> T

 

T Find(Predicate<T> Match)

 

Function Find(Match As Predicate<T>) As T

Parameters:

  • Match:

FindAll    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns all matches that matches the predicate.

 

method FindAll(Match: Predicate<T>): IEnumerable<T>

 

IEnumerable<T> FindAll(Predicate<T> Match)

 

// Toffee
func FindAll(_ Match: Predicate<T>) -> INSFastEnumeration<T>
// ToffeeV2
func FindAll(_ Match: Predicate<T>) -> IEnumerable<T>

 

Iterable<T> FindAll(Predicate<T> Match)

 

Function FindAll(Match As Predicate<T>) As IEnumerable<T>

Parameters:

  • Match:

FindIndex (Predicate<T>): Integer    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Find the index of first matching item matching the predicate.

 

method FindIndex(Match: Predicate<T>): Int32

 

Int32 FindIndex(Predicate<T> Match)

 

func FindIndex(_ Match: Predicate<T>) -> Int32

 

Integer FindIndex(Predicate<T> Match)

 

Function FindIndex(Match As Predicate<T>) As Int32

Parameters:

  • Match:

FindIndex (Integer, Integer, Predicate<T>): Integer    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Find the index of first matching item matching the predicate.

 

method FindIndex(StartIndex: Int32; aCount: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Int32 aCount, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ aCount: Int32, _ Match: Predicate<T>) -> Int32

 

Integer FindIndex(Integer StartIndex, Integer aCount, Predicate<T> Match)

 

Function FindIndex(StartIndex As Int32, aCount As Int32, Match As Predicate<T>) As Int32

Parameters:

  • StartIndex:
  • aCount:
  • Match:

FindIndex (Integer, Predicate<T>): Integer    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Find the index of first matching item matching the predicate.

 

method FindIndex(StartIndex: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ Match: Predicate<T>) -> Int32

 

Integer FindIndex(Integer StartIndex, Predicate<T> Match)

 

Function FindIndex(StartIndex As Int32, Match As Predicate<T>) As Int32

Parameters:

  • StartIndex:
  • Match:

FirstObject    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the first element (or fails)

 

property FirstObject: not nullable T read;

 

T! FirstObject { get; }

 

var FirstObject: T { get{} }

 

T FirstObject { __get; }

 

ReadOnly Property FirstObject() As T

ForEach    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Loops over al litems and triggers the action for each item.

 

method ForEach(Action: Action<T>)

 

void ForEach(Action<T> Action)

 

func ForEach(_ Action: Action<T>)

 

void ForEach(Action<T> Action)

 

Sub ForEach(Action As Action<T>)

Parameters:

  • Action:

GetSequence    (declared in ImmutableList<T>) ToffeeV2

Returns a sequence of all items in this list.

 

func GetSequence() -> IEnumerable<T>

IndexOf    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the index of matching item, or -1.

 

method IndexOf(aItem: T): Int32

 

Int32 IndexOf(T aItem)

 

func IndexOf(_ aItem: T) -> Int32

 

Integer IndexOf(T aItem)

 

Function IndexOf(aItem As T) As Int32

Parameters:

  • aItem:

Insert

Insert an item in the list at position aIndex.

 

method Insert(Index: Int32; aItem: T)

 

void Insert(Int32 Index, T aItem)

 

func Insert(_ Index: Int32, _ aItem: T)

 

void Insert(Integer Index, T aItem)

 

Sub Insert(Index As Int32, aItem As T)

Parameters:

  • Index:
  • aItem:

InsertRange (Integer, array of T) Cooper, Island, Toffee, ToffeeV2

Insert a range of elements at aIndex.

 

method InsertRange(Index: Int32; Items: array of T)

 

void InsertRange(Int32 Index, T[] Items)

 

func InsertRange(_ Index: Int32, _ Items: T...)

 

void InsertRange(Integer Index, T[] Items)

 

Sub InsertRange(Index As Int32, Items As T())

Parameters:

  • Index:
  • Items:

InsertRange (Int32, List<T>)

Insert a range of elements at aIndex.

 

method InsertRange(Index: Int32; Items: List<T>)

 

void InsertRange(Int32 Index, List<T> Items)

 

func InsertRange(_ Index: Int32, _ Items: List<T>)

 

void InsertRange(Integer Index, List<T> Items)

 

Sub InsertRange(Index As Int32, Items As List<T>)

Parameters:

  • Index:
  • Items:

InsertRange (Int32, array of T) .NET, .NET Standard 2.0

 

method InsertRange(Index: Int32; Items: array of T)

 

void InsertRange(Int32 Index, T[] Items)

 

func InsertRange(_ Index: Int32, _ Items: T...)

 

Sub InsertRange(Index As Int32, Items As T())

Parameters:

  • Index:
  • Items:

Item    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Indexer for the list.

 

property Item[i: Int32]: T read;

 

T Item[Int32 i] { get; }

 

subscript Item(_ i: Int32) -> T { get{} }

 

T Item[Integer i] { __get; }

 

ReadOnly Property Item(i As Int32) As T

Item

Access an item by index.

 

property Item[i: Int32]: T read write;

 

T Item[Int32 i] { get; set; }

 

subscript Item(_ i: Int32) -> T { get{} set{} }

 

T Item[Integer i] { __get; __set; }

 

Property Item(i As Int32) As T

JoinedString    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Join the items in this list together with separator as separator.

 

method JoinedString(aSeparator: nullable String): not nullable String

 

String! JoinedString(String? aSeparator)

 

// Toffee
func JoinedString(_ aSeparator: String) -> String
// ToffeeV2
func JoinedString(_ aSeparator: String?) -> String

 

String JoinedString(String aSeparator)

 

Function JoinedString(aSeparator As String?) As String

Parameters:

  • aSeparator:

LastIndexOf    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the index of matching item, or -1, in reverse lookup order.

 

method LastIndexOf(aItem: T): Int32

 

Int32 LastIndexOf(T aItem)

 

func LastIndexOf(_ aItem: T) -> Int32

 

Integer LastIndexOf(T aItem)

 

Function LastIndexOf(aItem As T) As Int32

Parameters:

  • aItem:

LastObject    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the last object in the list, or fails.

 

property LastObject: not nullable T read;

 

T! LastObject { get; }

 

var LastObject: T { get{} }

 

T LastObject { __get; }

 

ReadOnly Property LastObject() As T

MutableVersion    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

creates a copy of the list as mutable list.

 

// Island-UIKit for Mac-x86_64
method MutableVersion: not nullable List<T>
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
method MutableVersion: not nullable RemObjects.Elements.RTL.List<T>

 

// Island-UIKit for Mac-x86_64
List<T>! MutableVersion()
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
RemObjects.Elements.RTL.List<T>! MutableVersion()

 

// Toffee-UIKit for Mac, ToffeeV2-UIKit for Mac-x86_64
func MutableVersion() -> List<T>
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, ToffeeV2-iOS, ToffeeV2-iOS Simulator-x86_64, ToffeeV2-Mac Catalyst, ToffeeV2-macOS, ToffeeV2-tvOS, ToffeeV2-tvOS Simulator-x86_64, ToffeeV2-watchOS, ToffeeV2-watchOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
func MutableVersion() -> RemObjects.Elements.RTL.List<T>

 

RemObjects.Elements.RTL.List<T> MutableVersion()

 

// Island-UIKit for Mac-x86_64
Function MutableVersion() As List<T>
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
Function MutableVersion() As RemObjects.Elements.RTL.List<T>

Remove (T): Boolean

Remove an item.

 

method Remove(aItem: T): Boolean

 

Boolean Remove(T aItem)

 

func Remove(_ aItem: T) -> Boolean

 

Boolean Remove(T aItem)

 

Function Remove(aItem As T) As Boolean

Parameters:

  • aItem:

Remove (IEnumerable<T>)

Remove a range of items.

 

method Remove(aItems: IEnumerable<T>)

 

void Remove(IEnumerable<T> aItems)

 

// Toffee
func Remove(_ aItems: INSFastEnumeration<T>)
// ToffeeV2
func Remove(_ aItems: IEnumerable<T>)

 

void Remove(Iterable<T> aItems)

 

Sub Remove(aItems As IEnumerable<T>)

Parameters:

  • aItems:

Remove (List<T>)

Remove a range of items.

 

method Remove(aItems: List<T>)

 

void Remove(List<T> aItems)

 

func Remove(_ aItems: List<T>)

 

void Remove(List<T> aItems)

 

Sub Remove(aItems As List<T>)

Parameters:

  • aItems:

RemoveAll

Remove all items.

 

method RemoveAll

 

void RemoveAll()

 

func RemoveAll()

 

void RemoveAll()

 

Sub RemoveAll()

RemoveAt

Remove an item at the given index.

 

method RemoveAt(aIndex: Int32)

 

void RemoveAt(Int32 aIndex)

 

func RemoveAt(_ aIndex: Int32)

 

void RemoveAt(Integer aIndex)

 

Sub RemoveAt(aIndex As Int32)

Parameters:

  • aIndex:

RemoveFirstObject

Remove the first item.

 

method RemoveFirstObject

 

void RemoveFirstObject()

 

func RemoveFirstObject()

 

void RemoveFirstObject()

 

Sub RemoveFirstObject()

RemoveLastObject

Remove the last item.

 

method RemoveLastObject

 

void RemoveLastObject()

 

func RemoveLastObject()

 

void RemoveLastObject()

 

Sub RemoveLastObject()

RemoveRange

Remove a range of items.

 

method RemoveRange(aIndex: Int32; aCount: Int32)

 

void RemoveRange(Int32 aIndex, Int32 aCount)

 

func RemoveRange(_ aIndex: Int32, _ aCount: Int32)

 

void RemoveRange(Integer aIndex, Integer aCount)

 

Sub RemoveRange(aIndex As Int32, aCount As Int32)

Parameters:

  • aIndex:
  • aCount:

ReplaceAt

Replace an item at a specific location.

 

method ReplaceAt(aIndex: Int32; aNewObject: T): T

 

T ReplaceAt(Int32 aIndex, T aNewObject)

 

func ReplaceAt(_ aIndex: Int32, _ aNewObject: T) -> T

 

T ReplaceAt(Integer aIndex, T aNewObject)

 

Function ReplaceAt(aIndex As Int32, aNewObject As T) As T

Parameters:

  • aIndex:
  • aNewObject:

ReplaceRange (Integer, Integer, ImmutableList<T>): T Cooper, Island, Toffee, ToffeeV2

Replace a range of items, essentially removes the range from aIndex to aIndex + aCount, then inserts aNewObjects.

 

method ReplaceRange(aIndex: Int32; aCount: Int32; aNewObjects: ImmutableList<T>): T

 

T ReplaceRange(Int32 aIndex, Int32 aCount, ImmutableList<T> aNewObjects)

 

func ReplaceRange(_ aIndex: Int32, _ aCount: Int32, _ aNewObjects: ImmutableList<T>) -> T

 

T ReplaceRange(Integer aIndex, Integer aCount, ImmutableList<T> aNewObjects)

 

Function ReplaceRange(aIndex As Int32, aCount As Int32, aNewObjects As ImmutableList<T>) As T

Parameters:

  • aIndex:
  • aCount:
  • aNewObjects:

ReplaceRange (Int32, Int32, ImmutableList<T>): T .NET, .NET Standard 2.0

 

method ReplaceRange(aIndex: Int32; aCount: Int32; aNewObjects: ImmutableList<T>): T

 

T ReplaceRange(Int32 aIndex, Int32 aCount, ImmutableList<T> aNewObjects)

 

func ReplaceRange(_ aIndex: Int32, _ aCount: Int32, _ aNewObjects: ImmutableList<T>) -> T

 

Function ReplaceRange(aIndex As Int32, aCount As Int32, aNewObjects As ImmutableList<T>) As T

Parameters:

  • aIndex:
  • aCount:
  • aNewObjects:

Sort (Comparison<T>) Cooper, Island, Toffee, ToffeeV2

Sort this list.

 

method Sort(Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

func Sort(_ Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

Sub Sort(Comparison As Comparison<T>)

Parameters:

  • Comparison:

Sort (Comparison<T>) .NET, .NET Standard 2.0

 

method Sort(Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

func Sort(_ Comparison: Comparison<T>)

 

Sub Sort(Comparison As Comparison<T>)

Parameters:

  • Comparison:

SubList (Integer): ImmutableList<T>    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a copy of a sub part of this list.

 

method SubList(aStartIndex: Int32): ImmutableList<T>

 

ImmutableList<T> SubList(Int32 aStartIndex)

 

func SubList(_ aStartIndex: Int32) -> ImmutableList<T>

 

ImmutableList<T> SubList(Integer aStartIndex)

 

Function SubList(aStartIndex As Int32) As ImmutableList<T>

Parameters:

  • aStartIndex:

SubList (Int32): List<T>

Create a new list that's a substring of this list.

 

method SubList(aStartIndex: Int32): List<T>

 

List<T> SubList(Int32 aStartIndex)

 

func SubList(_ aStartIndex: Int32) -> List<T>

 

List<T> SubList(Integer aStartIndex)

 

Function SubList(aStartIndex As Int32) As List<T>

Parameters:

  • aStartIndex:

SubList (Integer, Integer): ImmutableList<T>    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a copy of a sub part of this list.

 

method SubList(aStartIndex: Int32; aLength: Int32): ImmutableList<T>

 

ImmutableList<T> SubList(Int32 aStartIndex, Int32 aLength)

 

func SubList(_ aStartIndex: Int32, _ aLength: Int32) -> ImmutableList<T>

 

ImmutableList<T> SubList(Integer aStartIndex, Integer aLength)

 

Function SubList(aStartIndex As Int32, aLength As Int32) As ImmutableList<T>

Parameters:

  • aStartIndex:
  • aLength:

SubList (Int32, Int32): List<T>

Create a new list that's a substring of this list.

 

method SubList(aStartIndex: Int32; aLength: Int32): List<T>

 

List<T> SubList(Int32 aStartIndex, Int32 aLength)

 

func SubList(_ aStartIndex: Int32, _ aLength: Int32) -> List<T>

 

List<T> SubList(Integer aStartIndex, Integer aLength)

 

Function SubList(aStartIndex As Int32, aLength As Int32) As List<T>

Parameters:

  • aStartIndex:
  • aLength:

ToArray    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates an array from the items in this list.

 

method ToArray: not nullable array of T

 

T[]! ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

 

Function ToArray() As T()

ToList<U>    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns itself.

 

method ToList<U>: not nullable ImmutableList<U>

 

ImmutableList<U>! ToList<U>()

 

func ToList<U>() -> ImmutableList<U>

 

ImmutableList<U> ToList<U>()

 

Function ToList<U>() As ImmutableList<U>

ToList<U> Cooper, Island, Toffee, ToffeeV2

Create a copy of this list.

 

method ToList<U>: List<U>

 

List<U> ToList<U>()

 

func ToList<U>() -> List<U>

 

List<U> ToList<U>()

 

Function ToList<U>() As List<U>

ToList<U> .NET, .NET Standard 2.0

 

method ToList<U>: List<U>

 

List<U> ToList<U>()

 

func ToList<U>() -> List<U>

 

Function ToList<U>() As List<U>

ToSortedList    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Sorts this list ,and returns a copy.

 

method ToSortedList(Comparison: Comparison<T>): ImmutableList<T>

 

ImmutableList<T> ToSortedList(Comparison<T> Comparison)

 

func ToSortedList(_ Comparison: Comparison<T>) -> ImmutableList<T>

 

ImmutableList<T> ToSortedList(Comparison<T> Comparison)

 

Function ToSortedList(Comparison As Comparison<T>) As ImmutableList<T>

Parameters:

  • Comparison:

TrueForAll    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns true if the predicate is true for all items in this list.

 

method TrueForAll(Match: Predicate<T>): Boolean

 

Boolean TrueForAll(Predicate<T> Match)

 

func TrueForAll(_ Match: Predicate<T>) -> Boolean

 

Boolean TrueForAll(Predicate<T> Match)

 

Function TrueForAll(Match As Predicate<T>) As Boolean

Parameters:

  • Match:

 

Count    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the item count in this list.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

FirstObject    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the first element (or fails)

 

property FirstObject: not nullable T read;

 

T! FirstObject { get; }

 

var FirstObject: T { get{} }

 

T FirstObject { __get; }

 

ReadOnly Property FirstObject() As T

Item    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Indexer for the list.

 

property Item[i: Int32]: T read;

 

T Item[Int32 i] { get; }

 

subscript Item(_ i: Int32) -> T { get{} }

 

T Item[Integer i] { __get; }

 

ReadOnly Property Item(i As Int32) As T

Item

Access an item by index.

 

property Item[i: Int32]: T read write;

 

T Item[Int32 i] { get; set; }

 

subscript Item(_ i: Int32) -> T { get{} set{} }

 

T Item[Integer i] { __get; __set; }

 

Property Item(i As Int32) As T

LastObject    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the last object in the list, or fails.

 

property LastObject: not nullable T read;

 

T! LastObject { get; }

 

var LastObject: T { get{} }

 

T LastObject { __get; }

 

ReadOnly Property LastObject() As T

 

constructor    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor

 

List<T>()

 

init()

 

List<T>()

 

Sub New()

constructor (ImmutableList<T>)    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor(Items: ImmutableList<T>)

 

List<T>(ImmutableList<T> Items)

 

init(_ Items: ImmutableList<T>)

 

List<T>(ImmutableList<T> Items)

 

Sub New(Items As ImmutableList<T>)

Parameters:

  • Items:

constructor (Iterable<T>)    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor(Items: IEnumerable<T>)

 

List<T>(IEnumerable<T> Items)

 

// Toffee
init(_ Items: INSFastEnumeration<T>)
// ToffeeV2
init(_ Items: IEnumerable<T>)

 

List<T>(Iterable<T> Items)

 

Sub New(Items As IEnumerable<T>)

Parameters:

  • Items:

constructor (array of T)    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a new list class.

 

constructor(params anArray: array of T)

 

List<T>(params T[] anArray)

 

init(_ anArray: T...)

 

List<T>(T[]... anArray)

 

Sub New(ParamArray anArray As T())

Parameters:

  • anArray:

constructor withCapacity(Int32)

Creates a new isntance with a given capacity.

 

constructor withCapacity(aCapacity: Int32)

 

List<T> withCapacity(Int32 aCapacity)

 

init(withCapacity aCapacity: Int32)

 

List<T> withCapacity(Integer aCapacity)

 

Sub New withCapacity(aCapacity As Int32)

Parameters:

  • aCapacity:

constructor withRepeatedValue(T, Int32)

Creates a new instance with the value aValue repeated aCount times.

 

constructor withRepeatedValue(aValue: T; aCount: Int32)

 

List<T> withRepeatedValue(T aValue, Int32 aCount)

 

init(withRepeatedValue aValue: T, _ aCount: Int32)

 

List<T> withRepeatedValue(T aValue, Integer aCount)

 

Sub New withRepeatedValue(aValue As T, aCount As Int32)

Parameters:

  • aValue:
  • aCount:

Add (T): T

Add an item to the list.

 

method Add(aItem: T): T

 

T Add(T aItem)

 

func Add(_ aItem: T) -> T

 

T Add(T aItem)

 

Function Add(aItem As T) As T

Parameters:

  • aItem:

Add (nullable ImmutableList<T>)

Add a sequence of items to the list.

 

// Island-UIKit for Mac-x86_64
method Add(Items: nullable ImmutableList<T>)
// .NET, .NET Standard 2.0
method Add(Items: nullable ImmutableList<T>)
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
method Add(Items: nullable RemObjects.Elements.RTL.ImmutableList<T>)

 

// Island-UIKit for Mac-x86_64
void Add(ImmutableList<T>? Items)
// .NET, .NET Standard 2.0
void Add(ImmutableList<T>? Items)
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
void Add(RemObjects.Elements.RTL.ImmutableList<T>? Items)

 

// Toffee
func Add(_ Items: ImmutableList<T>)
// ToffeeV2-UIKit for Mac-x86_64
func Add(_ Items: ImmutableList<T>?)
// ToffeeV2-iOS, ToffeeV2-iOS Simulator-x86_64, ToffeeV2-Mac Catalyst, ToffeeV2-macOS, ToffeeV2-tvOS, ToffeeV2-tvOS Simulator-x86_64, ToffeeV2-watchOS, ToffeeV2-watchOS Simulator
func Add(_ Items: RemObjects.Elements.RTL.ImmutableList<T>?)

 

void Add(ImmutableList<T> Items)

 

// Island-UIKit for Mac-x86_64
Sub Add(Items As ImmutableList<T>?)
// .NET, .NET Standard 2.0
Sub Add(Items As ImmutableList<T>?)
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
Sub Add(Items As RemObjects.Elements.RTL.ImmutableList<T>?)

Parameters:

  • Items:

Add (nullable IEnumerable<T>)

Add a sequence of items to the list.

 

method Add(Items: nullable IEnumerable<T>)

 

void Add(IEnumerable<T>? Items)

 

// Toffee
func Add(_ Items: INSFastEnumeration<T>)
// ToffeeV2
func Add(_ Items: IEnumerable<T>?)

 

void Add(Iterable<T> Items)

 

Sub Add(Items As IEnumerable<T>?)

Parameters:

  • Items:

Add (nullable RemObjects.Elements.RTL.List<T>) ToffeeV2

Add a sequence of items to the list.

 

// ToffeeV2-UIKit for Mac-x86_64
func Add(_ Items: List<T>?)
// ToffeeV2-iOS, ToffeeV2-iOS Simulator-x86_64, ToffeeV2-Mac Catalyst, ToffeeV2-macOS, ToffeeV2-tvOS, ToffeeV2-tvOS Simulator-x86_64, ToffeeV2-watchOS, ToffeeV2-watchOS Simulator
func Add(_ Items: RemObjects.Elements.RTL.List<T>?)

Parameters:

  • Items:

Add (array of T) Cooper, Island, Toffee, ToffeeV2

Add an array of items to the list.

 

method Add(params Items: nullable array of T)

 

void Add(params T[]? Items)

 

// Toffee
func Add(_ Items: T...)
// ToffeeV2
func Add(_ Items: T...?...)

 

void Add(T[]... Items)

 

Sub Add(ParamArray Items As T()?)

Parameters:

  • Items:

Contains    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns true if this list contains aItem.

 

method Contains(aItem: T): Boolean

 

Boolean Contains(T aItem)

 

func Contains(_ aItem: T) -> Boolean

 

Boolean Contains(T aItem)

 

Function Contains(aItem As T) As Boolean

Parameters:

  • aItem:

Exists    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns true if this list contains an element matching the predicate.

 

method Exists(Match: Predicate<T>): Boolean

 

Boolean Exists(Predicate<T> Match)

 

func Exists(_ Match: Predicate<T>) -> Boolean

 

Boolean Exists(Predicate<T> Match)

 

Function Exists(Match As Predicate<T>) As Boolean

Parameters:

  • Match:

Find    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the first match that matches the predicate.

 

method Find(Match: Predicate<T>): T

 

T Find(Predicate<T> Match)

 

func Find(_ Match: Predicate<T>) -> T

 

T Find(Predicate<T> Match)

 

Function Find(Match As Predicate<T>) As T

Parameters:

  • Match:

FindAll    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns all matches that matches the predicate.

 

method FindAll(Match: Predicate<T>): IEnumerable<T>

 

IEnumerable<T> FindAll(Predicate<T> Match)

 

// Toffee
func FindAll(_ Match: Predicate<T>) -> INSFastEnumeration<T>
// ToffeeV2
func FindAll(_ Match: Predicate<T>) -> IEnumerable<T>

 

Iterable<T> FindAll(Predicate<T> Match)

 

Function FindAll(Match As Predicate<T>) As IEnumerable<T>

Parameters:

  • Match:

FindIndex (Predicate<T>): Integer    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Find the index of first matching item matching the predicate.

 

method FindIndex(Match: Predicate<T>): Int32

 

Int32 FindIndex(Predicate<T> Match)

 

func FindIndex(_ Match: Predicate<T>) -> Int32

 

Integer FindIndex(Predicate<T> Match)

 

Function FindIndex(Match As Predicate<T>) As Int32

Parameters:

  • Match:

FindIndex (Integer, Integer, Predicate<T>): Integer    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Find the index of first matching item matching the predicate.

 

method FindIndex(StartIndex: Int32; aCount: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Int32 aCount, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ aCount: Int32, _ Match: Predicate<T>) -> Int32

 

Integer FindIndex(Integer StartIndex, Integer aCount, Predicate<T> Match)

 

Function FindIndex(StartIndex As Int32, aCount As Int32, Match As Predicate<T>) As Int32

Parameters:

  • StartIndex:
  • aCount:
  • Match:

FindIndex (Integer, Predicate<T>): Integer    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Find the index of first matching item matching the predicate.

 

method FindIndex(StartIndex: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ Match: Predicate<T>) -> Int32

 

Integer FindIndex(Integer StartIndex, Predicate<T> Match)

 

Function FindIndex(StartIndex As Int32, Match As Predicate<T>) As Int32

Parameters:

  • StartIndex:
  • Match:

ForEach    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Loops over al litems and triggers the action for each item.

 

method ForEach(Action: Action<T>)

 

void ForEach(Action<T> Action)

 

func ForEach(_ Action: Action<T>)

 

void ForEach(Action<T> Action)

 

Sub ForEach(Action As Action<T>)

Parameters:

  • Action:

GetSequence    (declared in ImmutableList<T>) ToffeeV2

Returns a sequence of all items in this list.

 

func GetSequence() -> IEnumerable<T>

IndexOf    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the index of matching item, or -1.

 

method IndexOf(aItem: T): Int32

 

Int32 IndexOf(T aItem)

 

func IndexOf(_ aItem: T) -> Int32

 

Integer IndexOf(T aItem)

 

Function IndexOf(aItem As T) As Int32

Parameters:

  • aItem:

Insert

Insert an item in the list at position aIndex.

 

method Insert(Index: Int32; aItem: T)

 

void Insert(Int32 Index, T aItem)

 

func Insert(_ Index: Int32, _ aItem: T)

 

void Insert(Integer Index, T aItem)

 

Sub Insert(Index As Int32, aItem As T)

Parameters:

  • Index:
  • aItem:

InsertRange (Integer, array of T) Cooper, Island, Toffee, ToffeeV2

Insert a range of elements at aIndex.

 

method InsertRange(Index: Int32; Items: array of T)

 

void InsertRange(Int32 Index, T[] Items)

 

func InsertRange(_ Index: Int32, _ Items: T...)

 

void InsertRange(Integer Index, T[] Items)

 

Sub InsertRange(Index As Int32, Items As T())

Parameters:

  • Index:
  • Items:

InsertRange (Int32, List<T>)

Insert a range of elements at aIndex.

 

method InsertRange(Index: Int32; Items: List<T>)

 

void InsertRange(Int32 Index, List<T> Items)

 

func InsertRange(_ Index: Int32, _ Items: List<T>)

 

void InsertRange(Integer Index, List<T> Items)

 

Sub InsertRange(Index As Int32, Items As List<T>)

Parameters:

  • Index:
  • Items:

JoinedString    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Join the items in this list together with separator as separator.

 

method JoinedString(aSeparator: nullable String): not nullable String

 

String! JoinedString(String? aSeparator)

 

// Toffee
func JoinedString(_ aSeparator: String) -> String
// ToffeeV2
func JoinedString(_ aSeparator: String?) -> String

 

String JoinedString(String aSeparator)

 

Function JoinedString(aSeparator As String?) As String

Parameters:

  • aSeparator:

LastIndexOf    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns the index of matching item, or -1, in reverse lookup order.

 

method LastIndexOf(aItem: T): Int32

 

Int32 LastIndexOf(T aItem)

 

func LastIndexOf(_ aItem: T) -> Int32

 

Integer LastIndexOf(T aItem)

 

Function LastIndexOf(aItem As T) As Int32

Parameters:

  • aItem:

MutableVersion    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

creates a copy of the list as mutable list.

 

// Island-UIKit for Mac-x86_64
method MutableVersion: not nullable List<T>
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
method MutableVersion: not nullable RemObjects.Elements.RTL.List<T>

 

// Island-UIKit for Mac-x86_64
List<T>! MutableVersion()
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
RemObjects.Elements.RTL.List<T>! MutableVersion()

 

// Toffee-UIKit for Mac, ToffeeV2-UIKit for Mac-x86_64
func MutableVersion() -> List<T>
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, ToffeeV2-iOS, ToffeeV2-iOS Simulator-x86_64, ToffeeV2-Mac Catalyst, ToffeeV2-macOS, ToffeeV2-tvOS, ToffeeV2-tvOS Simulator-x86_64, ToffeeV2-watchOS, ToffeeV2-watchOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
func MutableVersion() -> RemObjects.Elements.RTL.List<T>

 

RemObjects.Elements.RTL.List<T> MutableVersion()

 

// Island-UIKit for Mac-x86_64
Function MutableVersion() As List<T>
// Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-WebAssembly-wasm32, Island-Windows
Function MutableVersion() As RemObjects.Elements.RTL.List<T>

Remove (T): Boolean

Remove an item.

 

method Remove(aItem: T): Boolean

 

Boolean Remove(T aItem)

 

func Remove(_ aItem: T) -> Boolean

 

Boolean Remove(T aItem)

 

Function Remove(aItem As T) As Boolean

Parameters:

  • aItem:

Remove (IEnumerable<T>)

Remove a range of items.

 

method Remove(aItems: IEnumerable<T>)

 

void Remove(IEnumerable<T> aItems)

 

// Toffee
func Remove(_ aItems: INSFastEnumeration<T>)
// ToffeeV2
func Remove(_ aItems: IEnumerable<T>)

 

void Remove(Iterable<T> aItems)

 

Sub Remove(aItems As IEnumerable<T>)

Parameters:

  • aItems:

Remove (List<T>)

Remove a range of items.

 

method Remove(aItems: List<T>)

 

void Remove(List<T> aItems)

 

func Remove(_ aItems: List<T>)

 

void Remove(List<T> aItems)

 

Sub Remove(aItems As List<T>)

Parameters:

  • aItems:

RemoveAll

Remove all items.

 

method RemoveAll

 

void RemoveAll()

 

func RemoveAll()

 

void RemoveAll()

 

Sub RemoveAll()

RemoveAt

Remove an item at the given index.

 

method RemoveAt(aIndex: Int32)

 

void RemoveAt(Int32 aIndex)

 

func RemoveAt(_ aIndex: Int32)

 

void RemoveAt(Integer aIndex)

 

Sub RemoveAt(aIndex As Int32)

Parameters:

  • aIndex:

RemoveFirstObject

Remove the first item.

 

method RemoveFirstObject

 

void RemoveFirstObject()

 

func RemoveFirstObject()

 

void RemoveFirstObject()

 

Sub RemoveFirstObject()

RemoveLastObject

Remove the last item.

 

method RemoveLastObject

 

void RemoveLastObject()

 

func RemoveLastObject()

 

void RemoveLastObject()

 

Sub RemoveLastObject()

RemoveRange

Remove a range of items.

 

method RemoveRange(aIndex: Int32; aCount: Int32)

 

void RemoveRange(Int32 aIndex, Int32 aCount)

 

func RemoveRange(_ aIndex: Int32, _ aCount: Int32)

 

void RemoveRange(Integer aIndex, Integer aCount)

 

Sub RemoveRange(aIndex As Int32, aCount As Int32)

Parameters:

  • aIndex:
  • aCount:

ReplaceAt

Replace an item at a specific location.

 

method ReplaceAt(aIndex: Int32; aNewObject: T): T

 

T ReplaceAt(Int32 aIndex, T aNewObject)

 

func ReplaceAt(_ aIndex: Int32, _ aNewObject: T) -> T

 

T ReplaceAt(Integer aIndex, T aNewObject)

 

Function ReplaceAt(aIndex As Int32, aNewObject As T) As T

Parameters:

  • aIndex:
  • aNewObject:

ReplaceRange (Integer, Integer, ImmutableList<T>): T Cooper, Island, Toffee, ToffeeV2

Replace a range of items, essentially removes the range from aIndex to aIndex + aCount, then inserts aNewObjects.

 

method ReplaceRange(aIndex: Int32; aCount: Int32; aNewObjects: ImmutableList<T>): T

 

T ReplaceRange(Int32 aIndex, Int32 aCount, ImmutableList<T> aNewObjects)

 

func ReplaceRange(_ aIndex: Int32, _ aCount: Int32, _ aNewObjects: ImmutableList<T>) -> T

 

T ReplaceRange(Integer aIndex, Integer aCount, ImmutableList<T> aNewObjects)

 

Function ReplaceRange(aIndex As Int32, aCount As Int32, aNewObjects As ImmutableList<T>) As T

Parameters:

  • aIndex:
  • aCount:
  • aNewObjects:

Sort (Comparison<T>) Cooper, Island, Toffee, ToffeeV2

Sort this list.

 

method Sort(Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

func Sort(_ Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

Sub Sort(Comparison As Comparison<T>)

Parameters:

  • Comparison:

SubList (Integer): ImmutableList<T>    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a copy of a sub part of this list.

 

method SubList(aStartIndex: Int32): ImmutableList<T>

 

ImmutableList<T> SubList(Int32 aStartIndex)

 

func SubList(_ aStartIndex: Int32) -> ImmutableList<T>

 

ImmutableList<T> SubList(Integer aStartIndex)

 

Function SubList(aStartIndex As Int32) As ImmutableList<T>

Parameters:

  • aStartIndex:

SubList (Int32): List<T>

Create a new list that's a substring of this list.

 

method SubList(aStartIndex: Int32): List<T>

 

List<T> SubList(Int32 aStartIndex)

 

func SubList(_ aStartIndex: Int32) -> List<T>

 

List<T> SubList(Integer aStartIndex)

 

Function SubList(aStartIndex As Int32) As List<T>

Parameters:

  • aStartIndex:

SubList (Integer, Integer): ImmutableList<T>    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates a copy of a sub part of this list.

 

method SubList(aStartIndex: Int32; aLength: Int32): ImmutableList<T>

 

ImmutableList<T> SubList(Int32 aStartIndex, Int32 aLength)

 

func SubList(_ aStartIndex: Int32, _ aLength: Int32) -> ImmutableList<T>

 

ImmutableList<T> SubList(Integer aStartIndex, Integer aLength)

 

Function SubList(aStartIndex As Int32, aLength As Int32) As ImmutableList<T>

Parameters:

  • aStartIndex:
  • aLength:

SubList (Int32, Int32): List<T>

Create a new list that's a substring of this list.

 

method SubList(aStartIndex: Int32; aLength: Int32): List<T>

 

List<T> SubList(Int32 aStartIndex, Int32 aLength)

 

func SubList(_ aStartIndex: Int32, _ aLength: Int32) -> List<T>

 

List<T> SubList(Integer aStartIndex, Integer aLength)

 

Function SubList(aStartIndex As Int32, aLength As Int32) As List<T>

Parameters:

  • aStartIndex:
  • aLength:

ToArray    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Creates an array from the items in this list.

 

method ToArray: not nullable array of T

 

T[]! ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

 

Function ToArray() As T()

ToList<U>    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns itself.

 

method ToList<U>: not nullable ImmutableList<U>

 

ImmutableList<U>! ToList<U>()

 

func ToList<U>() -> ImmutableList<U>

 

ImmutableList<U> ToList<U>()

 

Function ToList<U>() As ImmutableList<U>

ToList<U> Cooper, Island, Toffee, ToffeeV2

Create a copy of this list.

 

method ToList<U>: List<U>

 

List<U> ToList<U>()

 

func ToList<U>() -> List<U>

 

List<U> ToList<U>()

 

Function ToList<U>() As List<U>

ToSortedList    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Sorts this list ,and returns a copy.

 

method ToSortedList(Comparison: Comparison<T>): ImmutableList<T>

 

ImmutableList<T> ToSortedList(Comparison<T> Comparison)

 

func ToSortedList(_ Comparison: Comparison<T>) -> ImmutableList<T>

 

ImmutableList<T> ToSortedList(Comparison<T> Comparison)

 

Function ToSortedList(Comparison As Comparison<T>) As ImmutableList<T>

Parameters:

  • Comparison:

TrueForAll    (declared in ImmutableList<T>) Cooper, Island, Toffee, ToffeeV2

Returns true if the predicate is true for all items in this list.

 

method TrueForAll(Match: Predicate<T>): Boolean

 

Boolean TrueForAll(Predicate<T> Match)

 

func TrueForAll(_ Match: Predicate<T>) -> Boolean

 

Boolean TrueForAll(Predicate<T> Match)

 

Function TrueForAll(Match As Predicate<T>) As Boolean

Parameters:

  • Match:

Add (nullable array of T) .NET, .NET Standard 2.0

 

method Add(params Items: nullable array of T)

 

void Add(params T[]? Items)

 

func Add(_ Items: T...?...)

 

Sub Add(ParamArray Items As T()?)

Parameters:

  • Items:

InsertRange (Int32, array of T) .NET, .NET Standard 2.0

 

method InsertRange(Index: Int32; Items: array of T)

 

void InsertRange(Int32 Index, T[] Items)

 

func InsertRange(_ Index: Int32, _ Items: T...)

 

Sub InsertRange(Index As Int32, Items As T())

Parameters:

  • Index:
  • Items:

ReplaceRange (Int32, Int32, ImmutableList<T>): T .NET, .NET Standard 2.0

 

method ReplaceRange(aIndex: Int32; aCount: Int32; aNewObjects: ImmutableList<T>): T

 

T ReplaceRange(Int32 aIndex, Int32 aCount, ImmutableList<T> aNewObjects)

 

func ReplaceRange(_ aIndex: Int32, _ aCount: Int32, _ aNewObjects: ImmutableList<T>) -> T

 

Function ReplaceRange(aIndex As Int32, aCount As Int32, aNewObjects As ImmutableList<T>) As T

Parameters:

  • aIndex:
  • aCount:
  • aNewObjects:

Sort (Comparison<T>) .NET, .NET Standard 2.0

 

method Sort(Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

func Sort(_ Comparison: Comparison<T>)

 

Sub Sort(Comparison As Comparison<T>)

Parameters:

  • Comparison:

ToList<U> .NET, .NET Standard 2.0

 

method ToList<U>: List<U>

 

List<U> ToList<U>()

 

func ToList<U>() -> List<U>

 

Function ToList<U>() As List<U>