Oops, before we go any further, I've stumbled on a real gotcha e.g. digits 1974 123 1 9 7 4 0 1 2 3
now, when I apply (+!) to that lot, it is also applied to the leading zero of 0123 - which, of course, leads to a wrong result when summed. AAARGH! Never mind that when I try to sum with /+ it sums the columns, OK, I got round that by transposing (not the most elegant, but at least it works), but obviously the sum will be wrong for anything with a leading zero. Bill I haven't read up on 'f.' yet, but at this stage a spoiler will be welcome. Much as I want to like J, I feel I am still missing something in the overall scheme of things... it's making me jump through hoops, in just about any other language this is a pretty trivial problem! On Sat, 2010-08-28 at 11:15 +0800, bill lam wrote: > to get the oneliner, use the f. adverb eg > (#~ special) f. > > digits should be used as rank 0, and the @ adjacent to digits should then > be changed @: otherwise fp1 and +/ would also become used as rank 0. > > or you want a spoiler? > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
