linear_structures 1.1.2 linear_structures: ^1.1.2 copied to clipboard
This package contains implementation of all linear data structures in Dart language.
Linear structures #
Implementation of all common linear data structures in Dart.
Usage #
add linear_structures
as a dependency in your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
linear_structures: 1.1.2
Run pub get
to install.
Content #
Example #
DoublyLinkedList<String> list = DoublyLinkedList();
print("list is empty: ${list.isEmpty}");
list.addLast("B");
list.addFirst("A");
list.addLast("C");
print(list.getAll());
print("removed element: ${list.removeLast()}");
print(list.getAll());