Thanks. I guess you really meant `indices`. Not ap...
# getting-started
j
Thanks. I guess you really meant
indices
. Not applicable here though. I’m iterating over a large array and filling a smaller one, and I want to stop iterating over the large array as soon as the small one is filled. Not the most common use-case of course, but in general, I’m just wondering if there is any equivalent to the somewhat common Java loop
for (int i = 0; i < array.length && someArbitraryCondition; i++)
.