langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
16
Task/Arrays/PostScript/arrays.ps
Normal file
16
Task/Arrays/PostScript/arrays.ps
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%Declaring array
|
||||
|
||||
/x [0 1] def
|
||||
|
||||
%Assigning value to an element, PostScript arrays are 0 based.
|
||||
|
||||
x 0 3 put
|
||||
|
||||
%Print array
|
||||
|
||||
x pstack
|
||||
[3 1]
|
||||
|
||||
%Get an element
|
||||
|
||||
x 1 get
|
||||
Loading…
Add table
Add a link
Reference in a new issue