Hi Harvey,

You are right that you can't use *. but you can use # or { depending on whether 
you are working with booleans or indices

    chars=. 'ABCDEFGHIJKLM'
   mask=. 0 1 0 0 1 0 1 0 0 0 0 0 0 
   mask # chars      NB. use Copy (dyadic #) to choose which characters get 
copied
BEG
   I. mask         NB. Indices (monadic I.) returns indices of 1's
1 4 6
   (I. mask) { chars     NB. use From (dyadic {) to select indices from the 
character list
BEG
   
Hope this helps

Cheers, bob

> On Apr 15, 2021, at 22:38, HH PackRat <[email protected]> wrote:
> 
> mask=. 0 1 0 0 1 0 1 0 0 0 0 0 0 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to