FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   more 'native' array functions
« Previous topic | Next topic »

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

5857340058573400 WWW Email
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

WWW
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);
 
Pages: 1 

« Previous topic | Next topic »