The ALTernative Language
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Index

You can index a struct or list via the index . operator. The index operation applied on a struct returns all the values of the pairs that have matching keys. The index operation applied on a list returns all the values that match the index.

The index value can be of any type, and is intersected with all the keys or indices to check whether they match.

Index struct

Index list