Hi,
I'm trying to add the contents of a boxed scalar to the the first row of
every corresponding boxed table.
I think where I'm having trouble is the [ and ] verbs, and having trouble
with juxtaposing take with amend.
a=:(1;2;3) [ b=:(i.3 3);(4+(i. 3 3)); (7+(i. 3 3))
lajea=: (([@:+@:,@: {.,@:}.@:]))&.>
a lajea b
Boxed versions of take amend are better than head / behead. I remember
reading something about exotic versions of amend, but I can't seem to find
the references right now. My use of [ & ] are recent additions. I can do
each of the constituent parts of the problem, so can script it, but it'd be
great to be able to combine it into one 'utility verb' line.
My apologies for any ambiguous posts. I'll get better!
thanks,
--Steven
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm