x=: 3 5 $ 5 7 2 9 1 6 5 2 0 5 4 7 2 2 5 Use one of the following depending on your needs:
<@I. 5 = x +-+---+-+ |0|1 4|4| +-+---+-+ x i."1 ]5 0 1 4 ----- Original Message ----- From: David Vincent-Jones <[email protected]> Date: Tuesday, January 27, 2009 11:57 Subject: [Jprogramming] Indices Question To: JSoftware <[email protected]> > I am looking for the exact location of the first specific value (5) > found in each row > > I. 5 = 3 5 $ 5 7 2 9 > 1 6 5 2 0 5 4 7 2 2 5 > 0 0 > 1 4 > 4 0 > > The result for line one is ambiguous .. it can appear that no > items were > found or col. 1 should be used. > > How should I make this less ambiguous? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
