Star Micronics LS-5 EX Packed array operators, Dictionary operators, at ilzde.r, arra2, ’a14e

Models: LS-5 TT LS-5 EX

1 182
Download 182 pages 62.94 Kb
Page 130
Image 130
at ilzde.r

I

forall

Execute proc for each element of arraj

get

Get array element indexed by inde.r

getinterval

Subarray of arraj

starting at inde.t for cvantelements

length

Number of elements in arr(i)

put

Put an? into array

at ilzde.r

putinterval

Replacesubarrayofarra~’ startingat inde.[by,subarra]

Packed array operators

Operator

Function

aload

Push all elements of packedat-ra?on stack

copy

Copy elements c)f~)t~(.ke[fc~rrc~]l to initial subarray of

 

arra}2

currentpacking

Return array packing mode

forall

Execute proc for each element ofp(lck[~ciclr~-(~?’

get

Get palkedarra> element indexed by imiex

getinterval

Subm-rayof packedarra> starting at inde.r for counf

 

elements

length

Number of elements in packedarra)’

packedarray

Create packed array consisting of the specified n

 

elements

setpacking

Set array packing mode

Dictionary operators

Operator

Function

begin

Push diet on dictionary stack

copy

Copy contents of diet! to dict~

countdictstack

Count elements on dictionary stack

currentdict

Push current dictionary on orerand stack

def

Associate ke~! and value in current dictionary

diet

Create dictionary with capacity for i}zt elements

dictstack

Copy dictionary stack into arra)

end

Pop dictionary stack

errordict

Error handler dictionary

forall

Execute pro( for each element of di(t

get

Get value associated with kej. in di(t

known

Test whether ke) is in dicf

length

Number of key-talue pairs in diet

load

Search dictionary stack for kc~and return associtited

 

\’a[14e

124

Page 130
Image 130
Star Micronics LS-5 EX, LS-5 TT operation manual Packed array operators, Dictionary operators, at ilzde.r, arra2, ’a14e