Some choices:
2000 ts 'e=. q 3}&.|: x'
2.56966e_5 3571
2000 ts 'd=. q (3})"0 1 x'
5.65454e_5 43648
2000 ts 'c=. q (<a:;3)} x'
1.36101e_5 27136
$q
192
$x
192 6
David Mitchell
On 12/23/2017 17:10, devonmcc wrote:
I use an expression like this to update a column: (97 98 99) 2}&.|: i. 3 3
Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Henry Rich <henryhr...@gmail.com> Date:
12/23/17 15:53 (GMT-05:00) To: programm...@jsoftware.com Subject: Re:
[Jprogramming] Clearing a screen in jqt and the best way to replace a column
Your solution is good. There is special code for most of it. See
warnings at
http://code.jsoftware.com/wiki/Vocabulary/SpecialCombinations#Whole-Array_Operations
Another possibility is
(($,)~ _2 */\ $) 0 2 1 3 |: > array
Henry Rich
On 12/23/2017 2:29 PM, Jimmy Gauvin wrote:
I was exploring the kind of problem lately and ended up with:
(,.97 98 99) (,2)}"1 i. 3 3
Left rank never occurred to me.
While we're playing with structures, is there a better way to unbox boxes
of arrays than the following:
(2 2$2)<;._3 i.6 6
┌─────┬─────┬─────┐
│0 1 │2 3 │ 4 5│
│6 7 │8 9 │10 11│
├─────┼─────┼─────┤
│12 13│14 15│16 17│
│18 19│20 21│22 23│
├─────┼─────┼─────┤
│24 25│26 27│28 29│
│30 31│32 33│34 35│
└─────┴─────┴─────┘
> ,.&.>/ ,&.>/ (2 2$2)<;._3 i.6 6
0 1 2 3 4 5
6 7 8 9 10 11
12 13 14 15 16 17
18 19 20 21 22 23
24 25 26 27 28 29
30 31 32 33 34 35
maybe a tesselation inverse?
On Sat, Dec 23, 2017 at 12:52 PM, Henry Rich <henryhr...@gmail.com> wrote:
To modify acolumn:
97 98 99 (2})"0 1 i. 3 3
0 1 97
3 4 98
6 7 99
Henry Ric
h
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---
This email has been checked for viruses by AVG.
http://www.avg.com
----------------------------------------------------------------------
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