toHashSet

fun <T, D : Dimension> MultiArray<T, D>.toHashSet(): HashSet<T>

Returns a HashSet of all elements.