next | previous | forward | backward | up | top | index | toc | home

listLocalSymbols -- compact display of symbols and their values

Synopsis

Description

i1 : x:=3; y:="hi there"; z:=2^30; f = x->x;
i5 : listLocalSymbols f

o5 = symbol class   value     location of symbol
     ------ -----   -----     ------------------
     x     :ZZ    --3         stdio:1:0-1:0     
     y     :String--"hi there"stdio:1:6-1:6     
     z     :ZZ    --1073741824stdio:1:21-1:21   
i6 : listLocalSymbols symbol x

o6 = symbol class   value     location of symbol
     ------ -----   -----     ------------------
     x     :ZZ    --3         stdio:1:0-1:0     
     y     :String--"hi there"stdio:1:6-1:6     
     z     :ZZ    --1073741824stdio:1:21-1:21   

Synopsis

  • Usage:
    listLocalSymbols(X,f)
  • Inputs:
  • Outputs:
    • a net, a compact display of the symbols in the local dictionaries attached to the closure f, and their values, provided their values are instances of the type X
i7 : listLocalSymbols(ZZ,f)

o7 = symbol class  value     location of symbol
     ------ -----  -----     ------------------
     x     :ZZ   --3         stdio:1:0-1:0     
     z     :ZZ   --1073741824stdio:1:21-1:21   

For the programmer

The object listLocalSymbols is a command.