ASCAN seems to only work with one-dimensional array. However, this is not noted in the documentation. Additionally, ASCAN does not produce an error if fed a multi-dimensional array and returns an incorrect '-1' as result.
Proof:
code:
$b[0,0]=1
$b[0,1]=2
$b[1,0]=3
$b[1,1]=4
? $b[1,1]
? ascan($b,1)

If ASCAN does indeed not support n-D arrays, then it should create an error message.
_________________________
There are two types of vessels, submarines and targets.