On 6/9/07, June Kim <[EMAIL PROTECTED]> wrote:
This isn't very complicated but it get's fairly complicated dealing
with another example I gave:
( (# ;~ >@{.@;:@>@{.) /.~ [: unikey >@{.@;: each) d
Here, you're re-using the phrase >@{.@;: and it's long enough
of a phrase that you should probably give it (or some variant)
a name.
For example
word0=: {.@;:@>
((~.@:word0;~#)/.~ word0) d
+-+----+
|2|May |
+-+----+
|1|June|
+-+----+
|2|July|
+-+----+
Or, if you prefer:
((~.@:word0,<@#)/.~ word0) d
+----+-+
|May |2|
+----+-+
|June|1|
+----+-+
|July|2|
+----+-+
Note also that you might replace ~.@:word0 with [EMAIL PROTECTED]
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm