ASPL Guide to Operations v 1.00
© 2024 by SetSphere.COM
3. 20merge merges set variables into a set variable
merge s1 [s2 .. sN] into targetvar where s1 [s2 .. sN] targetvar are set variables
merge s1 [s2 .. sN] where s1 [s2 .. sN] are set variables
When into is not specified then the resulting merged object is pushed on the top of the stack
merge
When specified by itself then the operator merges the object on top with the one one below top of stack, then pushes the result on the stack
merge setoid 1*t ins:H_H_H ous:H_H_H
Use the merge operator to merge one or many datasets into a dataset. This set operator can be followed by one or many set variables to be merged into a set variable. This operator can be labinated by preceding it or following it with comma, for example ,merge or merge, are equivaleent and will labinate the merged group labels.
merge EXAMPLEThe following example shows how to merge three set variables into one. In the following operation we will load the sample workspace WS1.
merge OPERATION# aspl WS1
① aspl>
merge a1 a2 a3 into a123
(merge a1 a2 a3 into set variable a123 )
② aspl>
u123 = gU a1 a2 a3
(get the group union of a1 a2 a3 and assign it to u123)
③ aspl>
v
(view symbol table)
④ aspl>
equal a123 u123
(compare set equality of a123 and u123)
⑤ aspl>
looselyequal a123 u123
(loosely compare set equality of a123 and u123)