Array.deleteElement within macro language

Posted by CARL Philippe (LBP) on
URL: http://imagej.273.s1.nabble.com/Array-deleteElement-within-macro-language-tp5021937.html

Dear all,

Would there be an interest for having an "Array.deleteElement(array, index)"
entry within the macro language methods?

Such deletion could be performed with the code below, but could not be too
easy to figure out:

                function ArrayDeleteElement(array, index)

                {

                               return Array.concat(Array.slice(array, 0,
index - 1), Array.slice(array, index, array.length));

                }

My best regards,

Philippe

 

Philippe CARL

Laboratoire de Bioimagerie et Pathologies

UMR 7021 CNRS - Université de Strasbourg

Faculté de Pharmacie

74 route du Rhin

67401 ILLKIRCH

Tel : +33(0)3 68 85 41 84


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html