Re: How difficult is ada to learn?



Randy Brukardt wrote:

type Integer_Array is array (Positive range <>) of Integer;

function "+" (IA : Integer) return Integer_Sets.Set is


What's the definition of "Integer_Sets.Set"? Shouldn't IA have type
Integer_Array, rather than Integer?

Yes. A slipe of the ... fingers.


Presuming that Integer_Sets.Set has "or" and "and" operations.

Yes. Integer_Sets is an instantiation of Ada.Containers.Ordered_Sets. .