Looking over the other responses here, I do not think I have anything
new to add. But perhaps another pass over the issues will help?
Here's your original sentence with its result:
(]j.1:)^:<10
10 10j1 10j2 10j3 10j4 10j5 10j6 10j7 10j8 10j9
Here is how you might get those same numbers using
(j. 1:) is a hook.
In this case (] j. 1:) is a monad, and the same as use of (j. 1:)
On 03/08/2016 03:47 AM, programming-requ...@forums.jsoftware.com wrote:
Date: Tue, 8 Mar 2016 02:24:27 -0500
From: "Linda Alvord"
To:
Subject: Re: [Jprogramming] Please explain
Message-ID:<01d1
From the dictionary of j:
u ^: v y <===> u^:( v y) y
u is (] j. 1:)
v is <
and the right noun is 10
(]j.1:)^:<10
10 10j1 10j2 10j3 10j4 10j5 10j6 10j7 10j8 10j9
Date: Mon, 7 Mar 2016 21:09:56 -0500
From: "Linda A Alvord"
To:
Subject: [Jprogramming] Ple
ject: Re: [Jprogramming] Please explain
Thanks Bob, I do get your result (I can't repsroduce what created my result?)
The ] doesn't seem to be necessary.
((]j.1:)^:<10)-:(]j.1:)^:<10
1
But I don't see why you would use a monadic definition for ^: in this case.
j.1
0j1
j.
s no meaning?
Cheers in return... Linda
-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf
Of robert therriault
Sent: Monday, March 7, 2016 9:42 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Please explain
Hi Linda,
When I ru
Hi Linda,
When I run that sentence I get a different result:
(]j.1:)^:<10
10 10j1 10j2 10j3 10j4 10j5 10j6 10j7 10j8 10j9
A slightly different case:
(]j.1:)^:(<10) 5
5 5j1 5j2 5j3 5j4 5j5 5j6 5j7 5j8 5j9
Vocabulary for ^: monadic says: u^:( u^:(i.m) y
Does that help?
Cheers, bob
ps
Several days ago this expression was included. Could you please explain how
it creates the result.
(]j.1:)^:<10
0j1 0j2 0j3 0j4 0j5 0j6 0j7 0j8 0j9 0j10
Thanks, Linda
--
For information about J forums see http://www.js