union method

Iterable<E> union(
  1. Iterable<E> other
)

Returns a Iterable containing all distinct elements from both collections.

Implementation

Iterable<E> union(Iterable<E> other) => followedBy(other).distinct;