Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Iterators in Ada

Tags:

ada

How can I write an iterator in a procedure? Sorry for my dump question, I am novoice. Thanks for the answers.


2 Answers

It totally depends on what you need to iterate over.

An array? Use a loop: plain, for, or while.

One of the predefined containers? Use the iterator declarations associated with the container.

A string? Treat it like an array.

It would help if you provided more specifics about what you're trying to accomplish.

like image 63
Marc C Avatar answered Sep 09 '26 07:09

Marc C


See the Ada style guide

like image 29
oluies Avatar answered Sep 09 '26 05:09

oluies



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!