Top
Back: nameof
Forward: ncols
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.92 names

Syntax:
names ( )
names ( ring_name )
names ( package_name )
Type:
list of strings
Purpose:
returns the names of all user-defined variables which are ring independent (this includes the names of procedures) or, in the second case, which belong to the given ring.

package_name can be Current, Top or any other identifier of type package.

Example:
 
  int i=9;
  ring r;
  poly f;
  package p;
  int p::j;
  poly g;
  setring r;
  list l=names();
  l[1..3];
==> l p r
  names(r);
==> [1]:
==>    g
==> [2]:
==>    f
  names(p);
==> [1]:
==>    j
See nameof; reservedName.

Top Back: nameof Forward: ncols FastBack: Functions and system variables FastForward: Control structures Up: Functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-2, Oct 2010, generated by texi2html.