 |
Author |
Topic: more 'native' array functions (Read 818 times) |
|
mim


|
more 'native' array functions
« on: Feb 13th, 2003, 1:22am » |
|
i think it would be very helpful to have more array functions in proce55ing such as: count(array) returning "size" of array - i consider it a cool function in php, for instance also a shuffle of sort functions would be nice so there would be no need to do all this trivial stuff "manually". what do you think? am i just too spoilt?
|
|
|
|
REAS
|
Re: more 'native' array functions
« Reply #1 on: Feb 13th, 2003, 11:42am » |
|
each array knows its own length. you can just use the syntax: int[] array = { 1, 2, 3, 4, 5 }; int arraysize = array.length; println(arraysize);
|
|
|
|
|