comp.lang.ada
 help / color / mirror / Atom feed
From: Mace Ayres <mace.ayres@gmail.com>
Subject: Re: Arrays, slices, case, and ‘in’ strategies
Date: Sat, 30 Dec 2017 09:12:45 -0800 (PST)
Date: 2017-12-30T09:12:45-08:00	[thread overview]
Message-ID: <e7f5ce27-6456-446d-ae85-a02ed611a0f6@googlegroups.com> (raw)
In-Reply-To: <ly373seb7x.fsf@pushface.org>

Thanks Simon:  I meant to say that in addition to using the array indices to determine the cell location, the array types, (cell) have a triad property too. It is a fixed constant of course. 
Maybe I could use that some how:  - if gird(3,3).triad = 3 then I am in grid 3 - but I still have to search each of the 9 locations in any triad to see it already has 
an instance of the proposed number to enter.

Better yet, can I somehow select just the cells with .triad = N ( not using the grid indices) and check if any cell with triad = N already have the numb value proposed for entry.
But, at first blush that means searching all 81 locations, cells, if I have not already reduced the search space.

In SQL it might look like .. Select cell.triad as evall from grid
                                                     where eval = N ...
returning a subset (slice) of cells with indices r=1..3 and c=1..3

  reply	other threads:[~2017-12-30 17:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-30  0:51 Arrays, slices, case, and ‘in’ strategies Mace Ayres
2017-12-30  8:34 ` Jacob Sparre Andersen
2017-12-30 17:20   ` Mace Ayres
2017-12-30 17:30   ` Mace Ayres
2017-12-30  9:58 ` Jeffrey R. Carter
2017-12-30 17:32   ` Mace Ayres
2017-12-30 10:55 ` Simon Wright
2017-12-30 17:12   ` Mace Ayres [this message]
2017-12-30 17:41   ` Simon Wright
2017-12-30 23:52     ` Mace Ayres
2017-12-31  9:09       ` Simon Wright
2017-12-31 20:14 ` Robert Eachus
replies disabled

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