Why not include these?

 #$F=:' '
0

   #$G=:'A'
0
   <"0 F
┌─┐
│ │
└─┘

   <"0 G
┌─┐
│A│
└─┘
  Maybe A=:' ABC...

But that might be messy.

Linda
Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------
From: David Lambert <[email protected]>
Date: 9/23/18 7:55 PM (GMT-05:00)
To: programming <[email protected]>
Subject: Re: [Jprogramming] Using rank to avoid looping - reference?

err, yes and

rank =: # @: $

DATA =: 'ABCDEFFGHIJKLMNOPSSTUVXYZ'
SHAPE =: >: ? 3 # 5   NB. zeros aren't beneficial to this demonstration
A =: SHAPE $ DATA     NB. A is a rank 3 array of random shape
ITEM_RANK =: ? >: rank A
(;:'array items') , ( (< A) ; ( < <"ITEM_RANK A) ) , ( SHAPE ; ITEM_RANK )



On 09/23/2018 07:19 PM, David Lambert wrote:
>
> DATA =: 'ABCDEFFGHIJKLMNOPSSTUVXYZ'
> SHAPE =: >: ? 3 # 5   NB. zeros aren't beneficial to this demonstration
> A =: SHAPE $ DATA     NB. A is a rank 3 array of random shape
> ITEM_RANK =: ? >: rank A
> (;:'array items') , ( (< A) ; ( < <"ITEM_RANK A) ) , ( SHAPE ; ITEM_RANK )
>
>

----------------------------------------------------------------------
For information about J forums see 
https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7C770d6f582e614040e02a08d621aff989%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636733437014358709&amp;sdata=VcYpjtGUIkz2xBnLuPU88iwNRNSwJsS7IxshFjjzhQE%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to