Kyle M. Rudden wrote:
> Is there is list of non-primitive standard structures
> somewhere I am missing?
>
> NuVoc and other vocabulary lists tend to have primitives only.
> Where would I find a discussion / explanation of "#inv" on the wiki?
>
> Useful non-primitive structures like "each" you have to discover by
> reading all available materials and monitoring these discussions.
The "J phrases" are meant to collect such useful compound idioms.
"Phrases" is a take on language "phrase books" you might take along on a
trip to a foreign country; such books are more focused on collecting
practical, useful, everyday phrases such as "How much does this cost?" or
"Where can I find the bathroom", rather than on a comprehensive listing of
every word in the language, as bilingual dictionaries are.
The top-level phrase directory is linked from the Dictionary (under "Phr"
on the top navigation bar):
http://www.jsoftware.com/help/phrases/contents.htm
You can find #^:_1 in Phrases section 11A ("Inverse & Duality: Inverse"),
phrase d23 :
http://www.jsoftware.com/help/phrases/inverse.htm
And &.> (each) in section 13A ("Data: Inside Boxes"), phrase a0 :
http://www.jsoftware.com/help/phrases/inside_boxes.htm
And plenty more. Unfortunately, the phrase listing is a bit long in the
tooth these days, and needs some updating. It's been ported to the wiki,
rooted at:
http://www.jsoftware.com/jwiki/JPhrases
So now it just needs someone to go through and clean it up (and potentially
add to it).
-Dan
PS: I have my J session manager configured to print a random phrase from
the directory on every startup. I often learn new things, or am reminded
of old ones. Every once in a while, I'll get a real jem that I never knew
about.
Mostly, though, I do it because it makes a new J session look friendlier
and less spare. Here's what came up just now, for example.
New J (v602a) session started on 2014-09-11 at 11:33:39
m17=: all=: i.@! A. i. NB. All permutations of order y
Feel free to cop printPrompt from my utility script, if you'd like to (no
judgements on code quality please; I wrote it many moons ago):
http://jsoftware.com/svn/DanBron/trunk/config/startup.yes.ijs
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm