Advertisement
Guest User

Untitled

a guest
Oct 29th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.34 KB | None | 0 0
  1. generic
  2.     type Index is (<>);
  3.     type Counter is (<>);
  4. package Bag_Package is
  5.     procedure Empty(B : in out Bag);
  6.     procedure Add(B : in out Bag; I : in Index);
  7.     procedure Remove(B : in out Bag; I : in Index);
  8.     function Has_Any(B: in Bag; I : in Index) return Boolean;
  9. private
  10.     type Bag is array(Index range <>) of Counter;
  11. end Bag_Package;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement