MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: MOO into C
A bit of trivia on the 'add an element to the list' blah blah:
;;x={1}; return listinsert(x, 2, length(x)+1)
=> {1, 2}
[used 7 ticks, 1 second.]
;;x={1}; return x[$+1..$+1] = {2};
=> {1, 2}
[used 6 ticks, 0 seconds.]
;;x={1}; return x[$+1..$] = {2};
=> {1, 2}
[used 5 ticks, 1 second.]
;;x={1}; return listappend(x,2)
=> {1, 2}
[used 4 ticks, 0 seconds.]
;;x={1}; return {@x, 2}
=> {1, 2}
[used 3 ticks, 0 seconds.]
-------------------------------------------------------------
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/BioMOO
References:
Home |
Subject Index |
Thread Index