IDKitList<T> extension

on

Methods

copy() List<T>
The collection object is copied, but the elements of the collection content are not copied.
copyItems({T mapCopy(T)?}) List<T>
Copy the elements of the content of the collection object, the collection does not copy.
deepCopy({T mapCopy(T)?}) List<T>
To do a deep copy, you first need to copy the collection. If the target copy object mapCopy is null, the collection will be copied directly. Otherwise, the collection itself needs to be copied, and the elements inside the collection also need to be copied.
isFirst(T element) bool
Determine whether the element is the first element of the collection
isLast(T element) bool
Determine whether the element is the last element of the collection