The second boxing is unnecessary though.

   ('prefix'&, &.>) q=:Aileen`Brittney`Gail`Fiona

Also, alternatively

   ([: <@;"1 (<'prefix')&,.) q

Dec 16, 2023, 16:03 by schott.br...@gmail.com:

> Robert, especially, but all,
>
> Your solution is great and exploring it took me to the NuVoc page for &. :
> https://code.jsoftware.com/wiki/Vocabulary/ampdot .
> There I first found the following solution and then below that, your
> solution based on Semiduals .
>  (<'Mrs. ') ,&.>  names
> +-----------+-------------+---------+----------+
> |Mrs. Aileen|Mrs. Brittney|Mrs. Gail|Mrs. Fiona|
> +-----------+-------------+---------+----------+
>
> On Sat, Dec 16, 2023 at 3:20 AM 'robert therriault' via General <
> gene...@jsoftware.com> wrote:
>
>> This seems like it would get more responses in the programming forum, but
>> you can also use gerund operands to &. and select which argument you want
>> to process.
>>
>>  names=:'Aileen';'Brittney';'Gail';'Fiona'
>> 'Mrs. ' ,&.(a:`>) names
>> ┌───────────┬─────────────┬─────────┬──────────┐
>> │Mrs. Aileen│Mrs. Brittney│Mrs. Gail│Mrs. Fiona│
>> └───────────┴─────────────┴─────────┴──────────┘
>>
>> --
>>
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>

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

Reply via email to