three remarks:
• again, only for recent versions of J
• you don’t need the additional "1
• you could even do
applyoncols =: {{ $ $ m"0@, }}
+:`-:`*:`% applyoncols i. 3 4
Hauke Rehr
Am 01.09.21 um 17:02 schrieb R.E. Boss:
Even this works
+:`-:`*:`% "0"1 i.3 4
0 0.5 4 0.33333333
8 2.5 36 0.14285714
16 4.5 100 0.090909091
R.E. Boss
-----Original Message-----
From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of
'Pascal Jasmin' via Programming
Sent: dinsdag 31 augustus 2021 22:53
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] verbs of a gerund per item
also added fairly recently (J9?)
+:`-:"0 i.8
0 0.5 4 1.5 8 2.5 12 3.5
+:`-:"1 i.4 2
0 2
1 1.5
8 10
3 3.5
On Tuesday, August 31, 2021, 05:52:50 a.m. EDT, R.E. Boss
<r.e.b...@outlook.com> wrote:
Yep, did not know it was that simple.
Thanks, also to Rehr, with his more sophisticated solution.
R.E. Boss
-----Original Message-----
From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of Ben
Gorte
Sent: dinsdag 31 augustus 2021 11:47
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] verbs of a gerund per item
Hi R.E.,
You mean this?
(+`-`*`%`*:`%:`-:`>:)"0 [ 1 2 3 4 5 6 7 8
1 _2 1 0.25 25 2.44949 3.5 9
Ben
On Tue, 31 Aug 2021 at 19:10, R.E. Boss <r.e.b...@outlook.com> wrote:
Given a gerund of 8 (further irrelevant) verbs and a noun of 8 items,
I would like to have each verb work on one item.
How is this be done, given only the possible n=0,3 or 6 for `: n?
R.E. Boss
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
----------------------
mail written using NEO
neo-layout.org
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm