Title here
Summary here
Our first example demonstrates the use of arrays in Crystal. In Crystal, an array is a fixed-size list of elements of a specific type.
When you run this program, you’ll see:
Note that arrays in Crystal are printed in the form [v1, v2, v3, ...]
when using puts
.
Crystal’s arrays are similar to those in many other languages, but with some unique features. They are mutable, can be resized dynamically (unlike in the Go example), and provide many useful methods for manipulation and transformation.