{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "35aa894b",
   "metadata": {},
   "source": "```{index} array type; array\n```\n\n(array)=\n\n# Arrays\n\n<!-- chapter-intro -->\n\nWhen you need to store many values of the same type, arrays are the answer. This chapter covers one-dimensional and multi-dimensional arrays, including how to declare, initialize, and traverse them efficiently.\n"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "id": "24eeb98b",
   "source": "<h2>Why this chapter matters</h2>\n\nArrays are the foundation of all structured data storage:\n\n- hold a fixed number of values under one name\n- access any element in constant time using an index\n- pass collections of values to and from methods\n- model grids, matrices, and tables with 2D arrays\n"
  },
  {
   "cell_type": "markdown",
   "id": "deaf8020",
   "metadata": {},
   "source": "<h2>Learning goals</h2>\n\nBy the end of this chapter, you should be able to:\n\n- declare, initialize, and access 1D arrays\n- traverse an array with `for` and `foreach` loops\n- declare and work with 2D rectangular arrays\n- pass arrays to methods and return them as results\n\n<h2>Chapter flow</h2>\n\n```{tableofcontents}\n```\n"
  }
 ],
 "metadata": {
  "jupytext": {
   "cell_metadata_filter": "-all",
   "main_language": "python",
   "notebook_metadata_filter": "-all"
  },
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}