For Q1: Some packages are documented on the wiki, usually under Addons, e.g. http://code.jsoftware.com/wiki/Addons/docs/joxygen . However, not all are documented this way.
In any case I recommend that you checkout the addons and public repositories so the source is available and can be searched. If using the Qt IDE you might define Addons and Public folder names so you can browse with the editor. On Fri, Dec 8, 2017 at 12:09 PM, Rudolf Sykora <[email protected]> wrote: > Hello, > > I have two questions: > > 1) how do I find what functions are contained > in a package? Can I see it also before loading it? > What is the simplest way to open documentation for a > package? (E.g., I want to see all functions defined > in the 'stats' package, and, if possible, read what > some of them are supposed to do.) Should I find and read > the source? > > 2) I was looking around to see if and how permutations > taken from n items but with lenght l <= n are usually generated > by people using J. > (I.e., for n=4 && l=2 I want to get > 0 1 > 0 2 > 0 3 > 1 0 > 1 2 > 1 3 > 2 0 > 2 1 > 2 3 > 3 0 > 3 1 > 3 2 > altogether n * (n-1) * ... (n-l+1) items.) > But I so far only find generation of combinations and > lenght-n permutations. > > Using combinations and permuting them sounds like > undoing some work done (unnecessarily for this purpose) > by the function creating the combinations. Using full > lenght-n permutations and taking l elements only also > doesn't sound great. In C I'd use a simple recursive > procedure. > > Thanks for comments! > Ruda > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
