ASPL Guide to Operations v 1.00
© 2024 by SetSphere.COM


3. 13
   upop pops the last result from the unswer stack into an uset variable

 

logo

upop [a1 .. aN]       where [a1 .. aN] are partitioned set variables

upop

When specified by itself then simply pop the partitioned unswer stack

upop  usetoid  01*          ins:H_H_H_*H  ous:H_H_H_*H

●  Operator upop pops the last result from the unswer stack into an uset variable

Use the operator upop to pop the unswer stack. If the operator is followed by a variable name then the operation will pop the top of the unswer stack and assign it to the partitioned variable.

 

upop EXAMPLE
In this example we start ASPL loading the sample workspace WS1, then we issue the partition set operation to partition three set variables. We upop the unswer stack into a partitioned set variable.

 

upop OPERATION

aspl WS1
    (start ASPL loading the sample workspace WS1 )

①  aspl> tattler 1
    (toggle tattler)

②  aspl> v
    (print the symbol table)

③  aspl> fP a1 a2 a3
    (partition a1 a2 a3, notice from tattler that the unswer stack is being written)

④  aspl> uns
    (display the partitioned unswer stack)

⑤  aspl> upop P123
    (pop unswer stack in P123)

⑥  aspl> uv
    (print partitioned symbol table)

⑦  aspl> uv d P123
    (print descriptor of partitioned variable P123)

⑧  aspl> udisplay P123
    (display the partitioned variable P123)