Given the following array definition:
type A is array (1 .. 10) of INTEGER;
And the following generic:
generic
type LENGTH_T is range <>;
type INDEX_T is (<>);
type ELEMENT_T is limited private;
type ARRAY_T is array (INDEX_T) of ELEMENT_T;
function LIST_IMAGE
(LENGTH : in LENGTH_T;
ITEMS : in ARRAY_T)
return STRING;
Is there a way to instantiate LIST_IMAGE
for A
? What do I need to put for the type of the index?
function ARRAY_IMAGE is new LIST_IMAGE
(LENGTH_T => NATURAL,
INDEX_T => ???,
ELEMENT_T => INTEGER,
ARRAY_T => A);