Last change
on this file since 1047 was
1047,
checked in by sveta, 18 years ago
|
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
739 bytes
|
Line | |
---|
1 | $use Vector; |
---|
2 | $use StdIO; |
---|
3 | $vector V; |
---|
4 | |
---|
5 | Main = <Vector ('VA')('B') > :: s1, |
---|
6 | <Vector s1 s1> :: s2, |
---|
7 | <PrintLN "Vector1 =" <Vector-To-Exp s1>> |
---|
8 | <PrintLN "Vector2 = " <Vector-To-Exp s2>> |
---|
9 | <Vector-Fill s1 'C'> |
---|
10 | <PrintLN "Vector-Fill = " <Vector-To-Exp s1>> |
---|
11 | <Vector-Init s1 5 ('DDD')> |
---|
12 | <PrintLN "Vector-Init = " <Vector-To-Exp s1> |
---|
13 | " \n length = " <Vector-Length s1> |
---|
14 | "\n element 2 of 2" <Vector-Ref s2 2>> |
---|
15 | <Vector-Replace s1 ('ABC') s1 > |
---|
16 | <PrintLN "Replace = " <Vector-To-Exp s1>> |
---|
17 | <Subvector s1 0 2> :: s3, |
---|
18 | <PrintLN "Subvector =" <Vector-To-Exp s3>> |
---|
19 | <Subvector-Fill s3 1 1 "s3 s3 s3"> |
---|
20 | <PrintLN "Subvector-Fill =" <Vector-To-Exp s3>>; |
---|
Note: See
TracBrowser
for help on using the repository browser.