Oh. Yeah. Duh. Sorry. Henry Rich
On 8/18/2011 4:14 PM, Raul Miller wrote: > On Thu, Aug 18, 2011 at 3:58 PM, Henry Rich<[email protected]> wrote: >>> When looking for substrings, you should use (E.i.1:) which has special >>> code. http://www.jsoftware.com/help/dictionary/special.htm >> >> I don't think (E.i.1:) should be preferred to i. . All of dyad i. is >> special code. > > You might prefer the one over the other if you preferred the one's > result over the other's result. > > 'test' (E.i.1:) 'This might be a test' > 16 > 'This might be a test' i. 'test' > 9 12 3 9 > > In the first case you are searching for the first instance of a substring. > > In the second case you are searching for the first instance of each > character in the list. > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
