[Jprogramming] gnuplot has "show functions" what is the equivalent in J?<EOM>
Sherlock, Ric
R.G.Sherlock at massey.ac.nz
Tue Mar 24 13:05:21 HKT 2009
> From: Jonathan Lettvin
>
> gnuplot "show functions" lists all the currently defined functions.
> I would like to review the current definitions that I have entered.
> I would like to review the set of definitions I have loaded.
> Something like:
> show avg
> avg=: +/ % #
Is this the sort of thing you are after?
If you want to see a list of the names of definitions that are defined in your current locale then type:
names ''
If you want to see the definition of that name just type the name and press enter.
So in a new J session:
When you start the J session you are in the "base" locale. It is empty.
names'' NB. What names are defined? - none!
avg=: +/ % # NB. Define verb avg
vec=: 4 5 3 9 2 3 4 NB. Define noun vec
names '' NB. What names are defined?
avg vec
avg NB. What is the definition of avg?
+/ % #
vec NB. What is the definition of vec?
4 5 3 9 2 3 4
If a name was defined in a script and you want to open that script you can type:
edit 'fexist'
More information about the Programming
mailing list