** Brian
Took your hint and managed to put together a named verb which does
work even for lists
p=. 13 : '1(+:@[&0)~y'
p i.5
1 2 4 8 16
pt=. 1 (+:@[&0)~ ]
pt i.5
1 2 4 8 16
but for some reason not for negative arguments ..
p -i.5
|domain error: p
| p-i.5
-M
At 2018-08-07 15:04, you wrote:
http://www.jsoftware.com/help/dictionary/d630n.htm
at the bottom suggests another approach using
x f@[&0 y
On Tue, Aug 7, 2018 at 9:55 AM, Henry Rich <[email protected]> wrote:
> https://code.jsoftware.com/wiki/Vocabulary/hatco#Gerund_n
> Henry Rich
--
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm