comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: Multiple keys for a map
Date: Tue, 17 Sep 2013 11:57:17 -0700 (PDT)
Date: 2013-09-17T11:57:17-07:00	[thread overview]
Message-ID: <0dfe3c07-9a9c-441d-b258-0d4e544a393e@googlegroups.com> (raw)
In-Reply-To: <4f66d847-d030-4aa9-8bdf-9bcc5f3a0852@googlegroups.com>

Hello,
If you can stick with one answer per query, you can always glue several keys into one, like
  key1 & '#' key2 & '#' & key3
for strings or
  type Key_triplet is array(1..3) of Key_Type;
and use Key_triplet instead of Key_type.
For multiple answers... it is different. If keys are enumerated types you could loop through the type and collect answers. Otherwise, it's perhaps better to consider a DB.
_________________________
Gautier's Ada programming
http://gautiersblog.blogspot.com/search/label/Ada
NB: follow the above link for a valid e-mail address

  parent reply	other threads:[~2013-09-17 18:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 14:51 Multiple keys for a map Peter Brooks
2013-09-17 16:52 ` Dmitry A. Kazakov
2013-09-17 17:49   ` Peter Brooks
2013-09-18  7:22     ` Dmitry A. Kazakov
2013-09-18  9:34       ` Peter Brooks
2013-09-17 18:57 ` gautier_niouzes [this message]
2013-09-17 19:20   ` Peter Brooks
2013-09-18  5:19 ` Shark8
2013-09-18  5:44   ` Peter Brooks
replies disabled

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