RosettaCodeData/Task/Permutations/Ada/permutations-1.adb

10 lines
301 B
Ada
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
generic
N: positive;
package Generic_Perm is
subtype Element is Positive range 1 .. N;
type Permutation is array(Element) of Element;
procedure Set_To_First(P: out Permutation; Is_Last: out Boolean);
procedure Go_To_Next(P: in out Permutation; Is_Last: out Boolean);
end Generic_Perm;