comp.lang.ada
 help / color / mirror / Atom feed
From: Gregory Mewborn <mewborn@erols.com>
Subject: Array Iterator
Date: 1998/10/11
Date: 1998-10-11T00:00:00+00:00	[thread overview]
Message-ID: <3620C16B.3910@erols.com> (raw)

How do i create a set iterator for a set using a boolean array.


I begin with:

package integer_Set is
type Integer_Range is integer (1..100);
type set is limited private;
type set_Iteration is limited private;

procedure start_set_Iter (S: Set);
function more (S_Iter: Set_Iteration);
Procedure next_element (S_Iter: Set_Iteration);


private
type Set array (Integer_RANGE) of Boolean;

-- how do i write a Set_Iteration to use the the above functions and
procedures and to work with the Set array?




             reply	other threads:[~1998-10-11  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-11  0:00 Gregory Mewborn [this message]
1998-10-11  0:00 ` Array Iterator Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox