[Jprogramming] Clearing a screen in jqt and the best way to replace a column

Henry Rich henryhrich at gmail.com
Sat Dec 23 20:53:13 UTC 2017


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 <henryhrich at 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



More information about the Programming mailing list