Array

From SwiftAPI

Jump to: navigation, search

Operators

For Each Element

For Each Index

For Each Index and Element

Properties

Length - The number of elements in an array

Functions

Clear - Remove all elements from an array

Clone - Create a shallow copy of an array

Contains - Return true if an element exists in an array

Filter - Remove elements from an array that don't match a condition

Index Of - Find the index of element in an array

Insert - Add an element to an array at a specified index

Is Empty - Returns true if the array does not contain any elements

Join - Join all elements of an array into a string

Last Index Of - Finds the last index of element in an array

Pop - Get the last element in an array and remove it from the array

Push - Add an element to the end of an array

Remove - Remove the first occurrence of an element from an array

Remove element - Remove all occurrences of an element from an array

Remove At - Remove an element at a specified index from an array

Reverse - Reverse the order of elements in an array

Shift - Get the first element in an array and remove it from the array

Slice - Extract a section of an array

Sort - Sort elements in an array

Sort (custom comparison) - Sort elements in an array using a custom comparison method

Unique - Get the unique elements in an array

Unshift - Prepends elements to the front of an array

Personal tools