|
|
4.7.2 intvec expressions
An intvec expression is:
-
a range: int expression
.. int expression
-
a repeated entry: int expression
: positive int expression
(a:b generates an intvec of length b>0 with identical entries a)
-
a function returning intvec
-
an expression involving intvec operations with int (
+, -, *, /, %)
-
an expression of intvecs involving intvec operations (
+, -)
-
an expression involving an intvec operation with intmat (
*)
-
a type cast to intvec
Example:
|