distinct<T> function

List<T> distinct<T>(
  1. Iterable<T> iterable
)

Returns unique values from the iterable.

Implementation

List<T> distinct<T>(Iterable<T> iterable) {
  return iterable.toSet().toList();
}