Satisfied Interfaces: Category, Cloneable<Collection<Element>>, Iterable<Element,Null>
Direct Known Satisfying Interfaces: List<Element>, Map<Key,Item>, Set<Element>
All Known Subtypes Hierarchy

- Collection
  - List
    - Array
    - LazyList
    - Sequential
      - Empty
        - empty
      - Sequence
        - ArraySequence
        - Range
        - Singleton
        - Tuple
    - String
  - Map
    - LazyMap
    - emptyMap
  - Set
    - LazySet
    - emptySet

Represents an iterable collection of elements of finite size. `Collection` is the abstract supertype of `List`, `Map`, and `Set`.

A `Collection` forms a `Category` of its elements.

All `Collection`s are `Cloneable`. If a collection is immutable, it is acceptable that `clone` produce a reference to the collection itself. If a collection is mutable, `clone` should produce an immutable collection containing references to the same elements, with the same structure as the original collection—that is, it should produce an immutable shallow copy of the collection.

See also: List, Map, Set

Attributes
empty | Source Code shared actual default Boolean empty Determine if the collection is empty, that is, if it has no elements. Refined declaration: empty
string | Source Code shared actual default String string A string of form `"{ x, y, z }"` where `x`, `y`, and `z` are the `string` representations of the elements of this collection, as produced by the iterator of the collection, or the string `"{}"` if this collection is empty. If the collection iterator produces the value `null`, the string representation contains the string `"null"`. Refined declaration: string

Inherited Attributes
Attributes inherited from: Object hash
Attributes inherited from: Cloneable<Clone> clone
Attributes inherited from: Iterable<Element,Absent> coalesced, cycled, empty, first, indexed, last, rest, sequence, size, string

Methods
contains | Source Code shared actual default Boolean contains(Object element) Return `true` if the given object is an element of this collection. In this default implementation, and in most refining implementations, return `false` otherwise. An acceptable refining implementation may return `true` for objects which are not elements of the collection, but this is not recommended. (For example, the `contains()` method of `String` returns `true` for any substring of the string.) Refined declaration: contains

Inherited Methods
Methods inherited from: Object equals
Methods inherited from: Category contains, containsAny, containsEvery
Methods inherited from: Iterable<Element,Absent> any, by, chain, collect, count, cycle, defaultNullElements, every, filter, find, findLast, fold, following, iterator, longerThan, map, repeat, select, shorterThan, skipping, skippingWhile, sort, taking, takingWhile