A slight variation:
permh=: (- i.) #: i.@!
Thanks again,
--
Raul
On Sun, Oct 31, 2021 at 2:27 PM xash wrote:
>
> With mixed bases, for e.g. 3:
> 3 2 1 #: i. 6
>
> An equivalent function of permh is thus:
> (>:@i.@- #: i.@!) 3
>
> If you want to map arbitrary n to a permutation with unknown
Opps. property and widget should be swapped
wd 'set strength text *entroy .'
(untested)
On Mon, Nov 1, 2021 at 9:11 AM bill lam wrote:
> The wiki page that you followed was written J602 wd commands. Jqt wd
> commands adopted a similar but different syntax. J602 set command always
> sets th
The wiki page that you followed was written J602 wd commands. Jqt wd
commands adopted a similar but different syntax. J602 set command always
sets the 'text' property and is implied, but Jqt needs the explicit 'text'
because it can also set other properties, see wiki wd commands reference.
J602:
w
Devon,
Regarding the set error, I thin the following will work.
$initS=.('set ' , ])&> INIT
7 11
wd"1 initS
size
12
--
(B=)
--
For information about J forums see http://www.jsoftware.com/forums.htm
JQt IDE
Ctrl-D (comand-D on Mac) will bring up the saved previous commands and you can
select from there
OR
just move the cursor to a previous line in the IDE and press return. This will
load the line at the current input line. You can edit it and then hit return
again or just hit return to rer
Nice!
(I feel like I should have seen that...)
Thanks,
--
Raul
On Sun, Oct 31, 2021 at 2:27 PM xash wrote:
>
> With mixed bases, for e.g. 3:
> 3 2 1 #: i. 6
>
> An equivalent function of permh is thus:
> (>:@i.@- #: i.@!) 3
>
> If you want to map arbitrary n to a permutation with unknown leng
Hi Devon,
'jig' that is in the debug category of J add-ons is written for the jQt IDE and
so I have a fair amount of experience with it.
Most of what I was doing with it involved creating svg code to be displayed
within a webview component of jQt. I preferred jQt to JHS for this because the
i
Hi,
Does anyone use the JQt environment for J much? I'm taking a stab at
updating and extending the code here:
https://code.jsoftware.com/wiki/User:Andrew_Nikitin/Literate .
I want to see how suitable I find J for developing a GUI app. Now that
I've started, I'm starting to wonder if I should h
With mixed bases, for e.g. 3:
3 2 1 #: i. 6
An equivalent function of permh is thus:
(>:@i.@- #: i.@!) 3
If you want to map arbitrary n to a permutation with unknown length,
you could use something like this (I love J for things like !^:_1):
(#:~ [:>:@i.@-@<.@>: !^:_1)"0 (2+i.4) NB. needs specia
(I really do not know the "right" historical terminology for talking
about this, thus the subject line and the odd intro I am using here.)
In the Tower of Hanoi puzzle, we move a stack of disks from one tower
to another, moving only the top piece.
But imagine that we could remove the disks in any
10 matches
Mail list logo