LinkedHashSet<E>.identity constructor

LinkedHashSet<E>.identity()

Creates an insertion-ordered identity-based set.

Effectively a shorthand for:

new LinkedHashSet<E>(equals: identical,
                     hashCode: identityHashCode)

Implementation

external factory LinkedHashSet.identity();