Lunch
. Ask for the last element and you’d get back Dessert
.1
and not 0
, now isn't that funny. CFML is one of the few languages where array indexes start at 1
and not 0
. So if you have a PHP, Ruby or Java background, remember that 1
is where you start.[]
) and separated by commasappend()
[ x ]
) and replaced x
with the index we wantedlen()
findNoCase()
and it gave us the index position of the element in the array.arrayNew( dimensions = max 3 )
method:for
loopsloop
constructseach()
closureseach()
operations in a multi-threaded fashion. The arrayEach()
or each()
functions allows for a parallel
and maxThreads
arguments so the iteration can happen concurrently on as many maxThreads
as supported by your JVM.