ASPL Guide to Operations v 1.00
© 2024 by SetSphere.COM
3. 21lmerge loosely merges set variables into a set variable using leftmost variable group label
lmerge s1 [s2 .. sN] into targetvar where s1 [s2 .. sN] targetvar are set variables
lmerge setoid 1*t ins:H_H_H ous:H_H_H
Use the lmerge 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. The landing group label name (Lgn) of the leftmost (or the first) set-variable is used as the one for the resulting merged groups. Note also that when merging groups some label of subgroups, and some element names may be overwritten. This operator can be labinated by preceding it or following it with comma, for example ,lmerge or lmerge, are equivaleent and will labinate the merged group labels. See also gU and its labinated form gU, to get the union of groups.
lmerge EXAMPLE1The following example shows how to lmerge three set variables into one. In the following operation we will load the sample workspace WS1.
lmerge OPERATION1# aspl WS1
① aspl>
lmerge a1 a2 a3 into a123
(lmerge 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)
lmerge EXAMPLE2The following example shows how to lmerge three set variables into one. In the following operation we will load the sample workspace RANDONEBITMIX.
lmerge OPERATION2# aspl RANDONEBITMIX
① aspl>
merge g1 g2 g3 into mer123
② aspl>
lmerge g1 g2 g3 into lmer123
③ aspl>
gmerge g1 g2 g3 into gmer123
④ aspl>
v
(view symbol table)
⑤ aspl>
equal gmer123 lmer123
(compare set equality)
⑥ aspl>
looselyEqual gmer123 lmer123
⑦ aspl>
sim gmer123 lmer123
⑧ aspl>
,gU gmer123 lmer123
⑨ aspl>
gu123 = gU g1 g2 g3
⑩ aspl>
equal gu123 mer123