This script defines J session utilities ((J application development environment) and is included in the J standard library.
Definitions are loaded into the j locale with cover functions in z.
J | jpath |
L | load, loadd |
R | require |
S | scripts, show |
W | wcsize |
X | xedit |
Convert folder name to full path.
jpath '~bin/profile.ijs'
/home/elmo/j9/bin/profile.ijs
For more information, on folder names see Folders and Projects.
load scripts
Argument is a list of names, as full or relative pathnames, or script shortnames.
load 'numeric plot' - load numeric and plot scripts
load '~system/main/task.ijs' - load the task script
load calls the utility getscripts_j_ to resolve names, for example:
>getscripts_j_ 'numeric'
/home/elmo/j9/addons/general/misc/numeric.ijs
load scripts with display
This is the same as load except that the script is displayed as it is executed.
load scripts if not already loaded
this lists the script shortnames, which are stored in Public_j_.
scripts '' NB. list names
scripts 'v' NB. list names with corresponding scripts
show names using a linear representation
Useful for a quick summary of definitions.
show namelist (e.g. show 'deb edit list')
show numbers (from 0 1 2 3=nouns, adverbs etc)
show '' (equivalent to show 0 1 2 3)
show 'IF*' nl_z_ 0
IF64=: 1
IFIOS=: 0
IFJA=: 0
...
Return size of console, as columns and rows.
wcsize''
79 24
Load file in external editor.
xedit file [ ; row ] (row is optional and is 0-based)