[chuck-users] how best to resize array?
Kassen
signal.automatique at gmail.com
Fri Jul 27 10:29:36 EDT 2012
On 27 July 2012 15:57, George Locke <george.locke.maxmsp at gmail.com> wrote:
>
> Is there a better way?
Indeed. I'm a bit busy, so excuse the quoting;
1.2.1.2
- (added) dynamic, resizable arrays
.size( int ) resizes array; .size() returns current size()
<< operator appends new elements into array
.popBack() pops the last element of the array,
reducing size by 1
.clear() zero's out elements of the array
(see examples/array/
array_dyanmic.ck
array_resize.ck)
Source; http://chuck.cs.princeton.edu/release/VERSIONS
Hope that helps,
Kas.
More information about the chuck-users
mailing list