note..
    E.

eg.
    'own' E. 'the quick brown fox'
NB. 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0

plus note:
for index of first..
     i.
eg.
     0 0 1 0 1 i. 1
NB. 2

for index of last
     i:
eg.
     0 0 1 0 1 i. 1
NB. 4



On 2011-08-18 08:28, Gregory Nisbet wrote:
> I'm new to J and am curious about the existence of a primitive with
> functionality similar to indexOf in Java. I've checked the dictionary,
> Learning J, and J for C programmers and haven't been able to locate the
> primitive that does this. Thus, I figure I should ask the community.
>
> Much obliged,
> Gregory Nisbet
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to