Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleBeispiel 2

$array = create new array, arguments=121, 3
$index1 = get index of 1 in array $array offset=-1 +1 
(* $index1 == 0, da $array[0] == 1 und offset == 0 (-1 + 1 = 0) ) 

$index2 = get index of 1 in array $array offset=$index1 +1 
(* $index2 == 2, da $array[2] == 1 und offset == 1 ($index1 + 1 = 1) ) 

$index3 = get index of 1 in array $array offset=$index2 +1 
(* $index3 == 4, da $array[4] == 1 und offset == 3 ($index2 + 1 = 3) ) 

 

Verwandte Befehle:

remove element from array <Var/Array> at index <Var/Number>