plus

operator fun <Type> GdxArray<Type>.plus(element: Type): GdxArray<Type>

Creates a new GdxArray with appended element.

Return

a new GdxArray with elements from this array and element.

Parameters

element

will be added at the end of the new array.


operator fun <Type> GdxArray<Type>.plus(elements: Iterable<Type>): GdxArray<Type>
operator fun <Type> GdxArray<Type>.plus(elements: Collection<Type>): GdxArray<Type>

Creates a new GdxArray with appended elements.

Return

a new GdxArray with elements from this array and elements.

Parameters

elements

will be added at the end of the new array.


operator fun <Type> GdxArray<Type>.plus(elements: Array<out Type>): GdxArray<Type>

Allows to quickly addAll all elements of a native array to this array with a pleasant, chainable operator syntax.

Return

this array.

Parameters

elements

will be added to the array.


operator fun <Type> GdxSet<Type>.plus(element: Type): GdxSet<Type>

Allows to append elements to sets with set + element syntax.

Return

a new GdxSet with elements from this set and element.

Parameters

element

will be added to the result set.


operator fun <Type> GdxSet<Type>.plus(elements: Iterable<Type>): GdxSet<Type>

Allows to add all elements of another iterable to this set with + operator syntax.

Return

a new GdxSet with elements from this set and elements.

Parameters

elements

will be added to the result set.


operator fun <Type> GdxSet<Type>.plus(elements: Array<out Type>): GdxSet<Type>

Allows to add all elements of an array to this set with + operator syntax.

Return

a new GdxSet with elements from this set and elements.

Parameters

elements

will be added to the result set.