2 ms·
An Array in Ada is interesting. https://learn.adacore.com/courses/intro-to-ada/chapters/arrays.html https://learn.adacore.com/courses/intro-to-ada/chapters/arra
by andsoitis 4y ago
An Array in Ada is interesting. https://learn.adacore.com/courses/intro-to-ada/chapters/arrays.html https://learn.adacore.com/courses/intro-to-ada/chapters/arra...
Like other languages, it is a collection of contiguous elements that can be selected by indexing.
Unlike other languages:
- any discrete type can be used for indexing, not just integers
- bounds can be any value (doesn’t have to start at 0 or 1. First index could be 13)
- one consequence of the aforementioned is that arrays are types that map to the problem domain, rather than being tied to the computing domain
- and more…