"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator ^^ (Index Count)

Operator ^^

Index Count. e.g.

$a = "Hello";
$b = array(10, 20, 30);
$c = ["Cat", "Dog", "Fox"];
say ^^$a;
say ^^$b;
say ^^$c;
say ^^"Hello World";
// PRINTS
// 5
// 3
// 3
// 11

Rather than a normal index value this one obtains items from the size minus the index you request.

It can be used on Strings/Arrays/Classes etc.

See the Magic Class functions Count.

To see a list of all the operators go here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org