>>  <<  Ndx  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  User

misc: miscellaneous utilities

Name Type Description
boxcols verb box columns of matrix
chop verb chop array into boxed list
default verb set default value
diff verb second differences
index verb index where result is _1 if not found, instead of #x
join verb join boxed items
nounsizes verb noun sizes
nubcount verb nub + count
pathname verb split filename into path;name
prompt verb prompt for input
scriptform verb script representation of names
show verb show names using a linear representation
showevents verb show events
subs conj substitution
tolist verb convert boxed list to LF delimited list

boxcols

box columns of matrix
y is a matrix
x indicates partitions
  - a single integer is size of each partition
  - a boolean is beginning of each partition
examples:
   boxcols i.3 4

   3 boxcols i.3 7
+--------+--------+--+
| 0  1  2| 3  4  5| 6|
| 7  8  9|10 11 12|13|
|14 15 16|17 18 19|20|
+--------+--------+--+

   1 0 1 0 0 0 1 boxcols i.3 7
+-----+-----------+--+
| 0  1| 2  3  4  5| 6|
| 7  8| 9 10 11 12|13|
|14 15|16 17 18 19|20|
+-----+-----------+--+

chop

chop array into boxed list
chop character vector or matrix into boxed list.
x is optional delimiter, default LF if in text, else blank.
If a matrix, the delimiter must be vertically aligned,
otherwise use chop"1 to chop each row of the matrix.
e.g.  chop ": 10 20 30
      chop ": i. 5 4

default

set default value
name default value
set global name to value if not already defined

index

index where result is _1 if not found, instead of #x
example:
   'abc' index 'ce'
 2 _1

nounsizes

noun sizes

returns global nouns and their 3!:1 sizes,
in descending order of size

argument is a list of locales, default all if empty.

example:

    3 {. nounsizes''
 17824 rxpatterns_jregex_
  8360 PUBLIC_j_
  8296 PJFILES_jproject_

prompt

prompt for input

prompts for input, optionally with a default result

form: [default] prompt prompt_text

examples:
   prompt 'start date: '
   '2001 5 23' prompt 'start date: '

Note: the default is not available in jconsole.

scriptform

script representation of names
representation using multi-line script form for most explicit
definitions, otherwise linear representation.
useful for writing object definitions to a script file.

show

show names using a linear representation
show names using a linear representation to screen width
syntax:
  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)
useful for a quick summary of object definitions

showevents

show events

writes events to the session

y=0 turn off
   1 turn on display of sysevent
   2 turn on display of wdq

subs

substitution
form: new (old subs test) data
examples:
   10 (2 subs =) 1 3 2 1 5 2
1 3 10 1 5 10
   10 (2 subs <:) 1 3 2 1 5 2
1 10 10 1 10 10
(from David Alis)


>>  <<  Ndx  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  User