Difference between revisions of "Array"

(created page w/ basic summary)
 
m
 
Line 3: Line 3:
 
==Usage==
 
==Usage==
  
Arrays are mutable and can be appended to, deleted from, searched, and concatenated efficiently; however, especially in [[statically typed]] programming languages, an array can only hold entries of the same [[datatype]]. By storing arrays within arrays, [[ matrix|matrices]]or other multidimensional data structures can be simulated.  
+
Arrays are mutable and can be appended to, deleted from, searched, and concatenated efficiently; however, especially in [[statically typed]] programming languages, an array can only hold entries of the same [[datatype]]. By storing arrays within arrays, [[ matrix|matrices]] or other multidimensional data structures can be simulated.  
  
 
==Analogues==
 
==Analogues==

Latest revision as of 21:22, 15 May 2022

In many programming languages (like C++ and Swift, for example), an array is a data structure that stores multiple pieces of data in a specific order.

Usage

Arrays are mutable and can be appended to, deleted from, searched, and concatenated efficiently; however, especially in statically typed programming languages, an array can only hold entries of the same datatype. By storing arrays within arrays, matrices or other multidimensional data structures can be simulated.

Analogues

The analogue in Python of the array is the list. The analogue in R of the array is the vector.

See also

This article is a stub. Help us out by expanding it.