just showing how Devon's approach might work with some helper verbs.
Sometimes getting a result first and then going to documentation is a better
way to learn.  Use both approaches.

  A=. 1 2; 1 2 3 [ P =. (2 _2)
  f=. 13 : 'x+6*y'
  P f each A
  v=. f each
  P v A  NB. same result
To find out what v looks like tacitly, use the flatten verb

  NB. representation helpers
  paren[paren=.9!:3(6) [ nparen=.9!:3(5) [ boxed=.9!:3(2)

  NB. flatten -- which means 'replace verbs with J primitive verb contents
  v f.
([ + (6 * ]))&.>

  f each f.   NB. yields the same result
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to