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

Reply via email to