ListHelpers
Overview
Location
- Reference: Sugar
- Namespace: Sugar.Collections
Class Methods
AddRange
class method AddRange(aSelf: List<T>; aArr: array of T)
static void AddRange(List<T> aSelf, T[] aArr)
static func AddRange(_ aSelf: List<T>, _ aArr: T...)
static void AddRange(List<T> aSelf, T[] aArr)
Shared Sub AddRange(aSelf As List<T>, aArr As T())
Parameters:
- aSelf:
- aArr:
Find
class method Find(aSelf: List<T>; Match: Predicate<T>): T
static T Find(List<T> aSelf, Predicate<T> Match)
static func Find(_ aSelf: List<T>, _ Match: Predicate<T>) -> T
static T Find(List<T> aSelf, Predicate<T> Match)
Shared Function Find(aSelf As List<T>, Match As Predicate<T>) As T
Parameters:
- aSelf:
- Match:
FindAll
class method FindAll(aSelf: List<T>; Match: Predicate<T>): List<T>
static List<T> FindAll(List<T> aSelf, Predicate<T> Match)
static func FindAll(_ aSelf: List<T>, _ Match: Predicate<T>) -> List<T>
static List<T> FindAll(List<T> aSelf, Predicate<T> Match)
Shared Function FindAll(aSelf As List<T>, Match As Predicate<T>) As List<T>
Parameters:
- aSelf:
- Match:
FindIndex
class method FindIndex(aSelf: List<T>; StartIndex: Int32; aCount: Int32; Match: Predicate<T>): Int32
static Int32 FindIndex(List<T> aSelf, Int32 StartIndex, Int32 aCount, Predicate<T> Match)
static func FindIndex(_ aSelf: List<T>, _ StartIndex: Int32, _ aCount: Int32, _ Match: Predicate<T>) -> Int32
static Int32 FindIndex(List<T> aSelf, Int32 StartIndex, Int32 aCount, Predicate<T> Match)
Shared Function FindIndex(aSelf As List<T>, StartIndex As Int32, aCount As Int32, Match As Predicate<T>) As Int32
Parameters:
- aSelf:
- StartIndex:
- aCount:
- Match:
ForEach
class method ForEach(aSelf: List<T>; Action: Action<T>)
static void ForEach(List<T> aSelf, Action<T> Action)
static func ForEach(_ aSelf: List<T>, _ Action: Action<T>)
static void ForEach(List<T> aSelf, Action<T> Action)
Shared Sub ForEach(aSelf As List<T>, Action As Action<T>)
Parameters:
- aSelf:
- Action:
InsertRange
class method InsertRange(aSelf: List<T>; Index: Int32; Items: array of T)
static void InsertRange(List<T> aSelf, Int32 Index, T[] Items)
static func InsertRange(_ aSelf: List<T>, _ Index: Int32, _ Items: T...)
static void InsertRange(List<T> aSelf, Int32 Index, T[] Items)
Shared Sub InsertRange(aSelf As List<T>, Index As Int32, Items As T())
Parameters:
- aSelf:
- Index:
- Items:
TrueForAll
class method TrueForAll(aSelf: List<T>; Match: Predicate<T>): Boolean
static Boolean TrueForAll(List<T> aSelf, Predicate<T> Match)
static func TrueForAll(_ aSelf: List<T>, _ Match: Predicate<T>) -> Boolean
static Boolean TrueForAll(List<T> aSelf, Predicate<T> Match)
Shared Function TrueForAll(aSelf As List<T>, Match As Predicate<T>) As Boolean
Parameters:
- aSelf:
- Match: