I've also used U^:L.L:1 when dealing with that kind of data structure
where I only wanted to act on the part that's deeply nested.
!L:0^:L.L:1 (<0 1 2),<2 4;3 5 7
┌─┬─┐
│0 1 2│┌┬──┐│
│ ││2 24│6 120 5040││
│ │└┴──┘│
└─┴─┘
I like L: a lot. You can do neat things:
! L: 0 (<0 1 2),<2 4;3 5 7
┌─┬─┐
│1 1 2│┌┬──┐│
│ ││2 24│6 120 5040││
│ │└┴──┘│
└─┴─┘
> On Dec 16, 2023, at 09:09, Henry Rich wrote:
>
> 'prefix' ,L:0 names
>
> Untested.
>
>
'prefix' ,L:0 names
Untested.
Henry Rich
On Sat, Dec 16, 2023, 10:31 AM 'Viktor Grigorov' via General <
gene...@jsoftware.com> wrote:
> The second boxing is unnecessary though.
>
>('prefix'&, &.>) q=:Aileen`Brittney`Gail`Fiona
>
> Also, alternatively
>
>([: <@;"1 (<'prefix')&,.) q
>
>
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
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
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.