IListEx<T> extension

on
  • IList<T>

Methods

find(bool filter(T element)) → T?
updateAll(ValueCopyWith<T> update) → IList<T>
修改列表全部的元素
updateAllWhere(bool where(T element), ValueCopyWith<T> update) → IList<T>
有条件的修改全部
updateFirst(T callUpdate(T old)) → IList<T>
updateItemEx(T oldItem, T call(T old)) → IList<T>
updateItemFirstWhere(bool where(T element), T call(T old)) → IList<T>
updateItemWithIndex(int index, T callUpdate(T old)) → IList<T>
updateLast(T callUpdate(T old)) → IList<T>