This is related to the question I asked several days ago,

http://jsoftware.com/pipermail/programming/2023-December/062994.html

My suggestion would be

 8 (($@])#:[i.~,@]) A
1 3

Although you might want to an alternative behavior when there are
multiple matches.

LdBeth :)

>>>>> In <CAMw+KcroqQ4g=o4rkystuqvjqqqtfxpqjy38zwarncd_ttl...@mail.gmail.com> 
>>>>>   David Pinchbeck <dpinc...@gmail.com> wrote:
> Having trouble finding this in the wiki:  I know that we can select from a
> table using a boxed pair

> A

> 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


> (<1 3){A

> 8

> How do I write a verb f to do the reverse, so that
> 8 f A
> yields the result 1 3  ?

> Thanks,
> David
> -- 
> David Pinchbeck
> Associate Professor of Mathematics
> St. Joseph's College
> Standish, ME
> ----------------------------------------------------------------------
> 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