I demonstrated:
> 4 5 dbp i. 2 2 3
> 0 1 1
>
> 4 5 okp~ i. 2 2 3
> 0 1 1
> 0 1 2
>
Just so one doesn't conclude that dbp -: {.@:okp~ :
] g =._3;:^:_1\;:'the grass is always greener when greecian grown'
the grass is
always greener when
greecian grown
'gree' dbp g
1 7
2 9
'gree' okp~ g
0 4
0 5
0 2
0 2
As I said, dbp will locate the rectange x in the array y .
Because idx0@:f will return the indices of the ones for any predicate f ,
and because, in thie case f =. E. (fundamentally), dbp gives the indices of
the ones in the results of E. .
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm