How to assign all elements but one in ada?
If i have this
element_to_ignore : integer := 3; a : array(1..4) := (5,3,2,6); b : array(1..a'length-1) := a( all but not element_to_ignore ); I need this result:
b = (5,3,6)
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalHow to assign all elements but one in ada?
If i have this
element_to_ignore : integer := 3; a : array(1..4) := (5,3,2,6); b : array(1..a'length-1) := a( all but not element_to_ignore ); I need this result:
b = (5,3,6)
How to assign all elements but one in ada?
If i have this
element_to_ignore : integer := 3; a : array(1..4) := (5,3,2,6); b : array(1..a'length-1) := a( all but not element_to_ignore ); I need this result:
b = (5,3,6)
How to assign all elements but one in ada?
If i have this
element_to_ignore : integer := 3; a : array(1..4) := (5,3,2,6); b : array(1..a'length-1) := a( all but element_to_ignore ); I need this result:
b = (5,3,6)
How to assign all elements but one in ada?
If i have this
element_to_ignore : integer := 3; a : array(1..4) := (5,3,2,6); b : array(1..a'length-1) := a( all but not element_to_ignore ); I need this result:
b = (5,3,6)