talira

collection

Collections and utility functions and classes related to collections, for Dart

open sourceBSD-3-Clausefree

collection is the Dart team's package of utility functions and classes in the style of dart:collection that make working with collections easier: list algorithms (shuffling, binary search on sorted lists and several sorts), equality for iterables, lists, sets and maps and combinations of them (Dart's collections have no built-in equality), zipping iterables, a priority queue, and wrapper classes that delegate to another collection. It's published on pub.dev from the dart-lang/core repository.

Problems it solves

  • compare two lists, sets or maps in Dart by their contents
  • binary search or sort a list in Dart with a custom comparison
  • use a priority queue in a Dart or Flutter app

Features

  • list algorithms: shuffle, binary search, sorts
  • deep equality for lists, sets, maps and iterables
  • zip several iterables
  • PriorityQueue
  • delegating wrapper classes for collections