Skip to content

Commit

Permalink
Update data/tutorials/language/1ds_01_arrays.md
Browse files Browse the repository at this point in the history
Co-authored-by: tuohy <[email protected]>
  • Loading branch information
gpetiot and tuohy authored Jul 31, 2023
1 parent 3f702d4 commit e66b96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tutorials/language/1ds_01_arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ category: "Data Structures"

## Introduction

In OCaml, arrays are collections of elements of the same type that are stored in contiguous memory locations. They are mutable, each value can be updated, but they have a fixed size; which set them apart from lists.
In OCaml, arrays are collections of elements of one type. Unlike lists, arrays can be mutated by replacing their elements with other values of the same type, but cannot be resized. Arrays also allow efficient access to elements at any position.

Despite these differences many of the functions readily available on arrays are similar to the ones available for lists, please refer to the [List tutorial](https://ocaml.org/docs/lists) and documentation for more details about these functions.

Expand Down

0 comments on commit e66b96b

Please sign in to comment.