This is quite nice, though nothing to do with gerunds as such!
; ]&.":each '3';33;'9 99';12 13;1;2;'10 11 1e6'
3 33 9 99 12 13 1 2 10 11 100
I have been known to use ".@": - but using under only just occurred to me!
This also works:
abc =. 2345
; ]&.": each '3';33;'9 99';12
If you don't want to be at the mercy of your data's ordering, you could
selectively convert to numeric or not:
isChar=: ' ' -: [: ({.) 0 $ ]
; ((]`".) @. isChar) &.> '3';33;'9 99';12 13;1;2;'10 11 1e6'
3 33 9 99 12 13 1 2 10 11 100
>: ; ((]`".) @. isChar) &.> '3';33;'9 99';12
Ah! ah!
(,: datatype each) ]`(".each)"0 list
┌───┬───┬───┬┬───┬┐
│foo│1 │bar│2.17│baz│3.14│
├───┼───┼───┼┼───┼┤
│literal│boolean│literal│floating│literal│floating│
== Report of Meeting 2023-02-23 ==
Present: Art Anger, Bryce LeCates, Devon McCormick, Raul Miller, and Bob
Therriault
1) We were joined by Bryce Lecates, a newcomer to J who is interested in the
development of the wiki. Bryce was invited to join the wiki as a user. He
indicated that there
Looking at what I sent, below your message, it looks fine to me albeit a
little hard to read with all the indenting, especially since the indent
character is ">":
>>> 3 33 9 99 12 13 1 2 10 11 100
: ; ((]`".) @. isChar) &.> '3';33;'9 99';12 13;1;2;'10 11 1e6'
>>> 4 34 10 100 13 14 2 3 11
Oh, sorry.
However, if you look at the copy of your message below my
reply, both still appearing hereunder, you'll see something rather like
|
|: ; ((]`".) @. isChar) &.> '3';33;'9 99';12 13;1;2;'10 11 1e6'
|
(I've typed in the 3 vertical bars at the left-hand side!)
In any case, it looked
The second result was simply an increment to demonstrate that the result is
numeric.
On Sun, Feb 26, 2023 at 6:28 AM 'Mike Day' via Programming <
programm...@jsoftware.com> wrote:
> This is quite nice, though nothing to do with gerunds as such!
>
>; ]&.":each '3';33;'9 99';12 13;1;2;'10 11
If I remember correctly, the "0 limitation there was because d. was
explicitly rank 0 --
https://www.jsoftware.com/help/dictionary/dddot.htm
Meanwhile, of course, D. dealt with verbs at rank --
https://www.jsoftware.com/help/dictionary/ddcapdot.htm -- but getting
that right would have been a bit