get first and last items in array



I want to get the first record and last record in an array. I don't
want any other records, but am not finding how to do it. What I am
doing is pulling out information from a database, where the sql query
would have a result much like this:

10
11
12
13
14
15
16

And I want to grab the first and last items in the array, so in this
case, 10 and 16.

Any advice would be appreciated.
.



Relevant Pages

  • IDA expertise gezocht : an array of a user-defined structure
    ... I'm working with IDA, ... What I can't seem to do is to create an array of records. ... first record: The array shows the first record as defined, ... In the code only offsets to the first record are translated into ...
    (comp.lang.asm.x86)
  • Efficiency Question: Large Arrays vs. Indexed Files on Alphas
    ... am writing a program in Basic that will run on each box, ... decide to read some fields of some records into an array and ... maintain records that will eventually be written to an output file ... write the first record to the output file and just update each ...
    (comp.os.vms)
  • RE: [PHP] PHP MySQL Insert Syntax
    ... /*I'm trying to insert values from an array into MySQL DB but the insert ... begins at the last record in the table and not at first record in the table. ... I have added the cellSuffixes column after I already populated 30 records in ...
    (php.general)
  • Re: Array to find relative position - is there a better way?
    ... 1)} (entered as an array formula) ... it pulls the position of the first record not the last. ... The data ranges are named ... pull the most recent stage. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: tips on data structures for 3D volumes
    ... I'm new at this I would appreciate if anyone could offer any advice or any suggestion on this. ... For the meaty CL part, I started out by organizing the data in two lists, one for the nodes and the other for the elements. ... For the nodes I've defined a plain CLOS class and a global array to store a list of objects from that class. ... snip other 1D element classes ...
    (comp.lang.lisp)