It is an art to decide what primitives should be included
in a system.  I used J itself as a guide (e.g. ttally, tindexof,
tmemberof, etc.) and on that basis decline to add the
proposed verbs.  On the same basis a verb that probably 
should be included is:
tfrom=: <@[ {&.> ]

Additional thoughts on the proposed verbs:

- Alternative defns for tfreq are:
tfreq=: #/[EMAIL PROTECTED]
tfreq=: >@(# tkey)~

- tsort1 should perhaps be "order x by y" rather than the 
proposed "order y by x", to follow the dyads /: and \: .



----- Original Message -----
From: "Sherlock, Ric" <[EMAIL PROTECTED]>
Date: Monday, October 8, 2007 3:55
Subject: RE: [Jbeta] Inverted Table into system library
To: Beta forum <[email protected]>

> I second this request and respectfully propose that the following two
> verbs are also added to the new library script.
> 
> tfreq  =: #/.~@:|:@:(i.&>)~  NB. frequency of unique keys
> tsort1 =: <@[EMAIL PROTECTED] {&.> ]  NB. sort inverted table (y) 
> by inverted table key (x)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to