Indexing and slicing arrays