Related to : Big O notation of three for loops

Silverstripe 3 template loops functions and nested loops 
Good morning!
I can help you coming to a solution using your scenarios 2 and 3. For
the first one I wouldn't know how to address the scope of the first
loop correctly.
Scenario 2
This one is quite simple. You just need to refer to the general scope
Top:
///>sample extension code
public function testfn(){
return "<pre>testfn called!</pre>";
}//testfn
///>sample.ss
$testfn

Notation " Class... " 
It has nothing to do with Class<?>. The three dots in the end
means that the final argument is a varargs argument
For more info, check the Java documentation and this StackOverflow
answer.

Use scientific notation with xtable in R 
Try:
dat.table < xtable(dat[1:20,] ,digits=10)
"If values of digits are negative, the corresponding values of x are
displayed in scientific format with abs(digits) digits." xtable

Array Notation Order of Operations 
Luke's comment is right. We can look at the MDN page for operator
precedence.
Computed Member Access has precedence 1 and Assignment has precedence
16. So the property access expressions are evaluated first, then the
assignment operations. Furthermore, Computed Member Access has
lefttoright associativity, while Assignment has righttoleft
associativity.
So, we can think of the first step as p

Unknown array notation javascript 
See a reduced test case:
var a = [ 'x', 'y', 'z' ];
var o = {};
var i = 1;
o[i, 'labelname'] = a[i];
console.log(o);
which gives:
{ labelname: 'y' }
The , operator evaluates as whatever is on the right hand side of it.
There doesn't appear to be any point in having i, in that code.
