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
Parameters:
- aSelf:
- Action:
InsertRange
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: