Top
Back: 4.5 intvec
Forward: 4.5.2 intvec expressions
FastBack: 4. Data types
FastForward: 5. Functions and system variables
Up: 4.5 intvec
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

4.5.1 intvec declarations

Syntax:

intvec name = intvec_expression ;
intvec name = list_of_int_and_intvec_expressions ;

Purpose:

defines an intvec variable.
An intvec consists of an ordered list of integers.

Default:

0

Example:
 
  intvec iv=1,3,5,7,8;
  iv;
→ 1,3,5,7,8
  iv[4];
→ 7
  iv[3..size (iv)];
→ 5 7 8

Top Back: 4.5 intvec Forward: 4.5.2 intvec expressions FastBack: 4. Data types FastForward: 5. Functions and system variables Up: 4.5 intvec Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.