# a programming prob.

Gustavo Glusman (bmgustav@bioinformatics.weizmann.ac.il)
Tue, 13 Feb 1996 22:07:51 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    >OBJECT.PROP = {"foo", {"bar", {"hello", "there"},
    >               "qwerty", {"quaz", {"poi", {"moo", "cows"}}}}};
    >
    >and I had a verb that would return the numbers...
    >      {2, 4, 2, 2, 1}
    >
    >so OBJECT.PROP[2][4][2][2][1] would be "moo".

    IMHO, the best solution would be a modification to the server, to make the
    following three equivalent:
       somelist[index1][index2][...][index-n]
       somelist[index1, index2, ..., index-n]
       somelist[@someotherlist]
    ...where someotherlist equals {index1, index2, ..., index-n}.

    Wishful thinking. :)

    -------------------------------------------------------------
    Gustavo Glusman               Founder/administrator of BioMOO
    -- Gustavo@bioinformatics.weizmann.ac.il
    -- http://bioinformatics.weizmann.ac.il/Gustavo
    -- BioMOO: telnet bioinformatics.weizmann.ac.il 8888
               WWW:   http://bioinfo.weizmann.ac.il:8888