MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: a programming prob.



>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





Home | Subject Index | Thread Index