SList<T>.from constructor

SList<T>.from(
  1. Iterable<T> elements
)

Creates a doubly-linked list from an iterable.

Implementation

SList.from(Iterable<T> elements) {
  for (var element in elements) {
    pushBack(element);
  }
}