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


4. 3
   fU gets the elements union

 

logo

fU a1 [a2 .. aN]       where a1 [a2 .. aN] are set variables

fU`mtm~ a1 [a2 .. aN]

fU`mtm= a1 [a2 .. aN]

fU`c~ a1 [a2 .. aN]

fU`c= a1 [a2 .. aN]

fU

When specified by itself then get the union of the object on top of stack with the one one below top of stack then push result on the stack

setop  setoid  1**  commu        ins:H_H_H  ous:H_H_H

●  Operator fU gets the elements union

Use the operator fU to get the elements union of one or many datasets. This set operator can be followed by one or many set variables, and the set union is for the elements based on the group label or labels defined in the set variables. If the same named label is used in different set variables then you can labinate the set operation using ,fU or fU,.
See also how to get the elements intersection see SECTION 4.1.1 [f& gets the elements intersection] .

 

fU Example
The following example shows how to find the union of files found in three different directories of WS1 datasets. We start ASPL by loading the sample workspace WS1 and issue the operation fU on the set variables.

 

fU Operation

aspl WS1

①  aspl> fU a1 a2 a3
    (get union of elements (or files) of a1 a2 a3)

②  aspl> a123 = fU a1 a2 a3
    (assign a123 to the union of elements (or files) of a1 a2 a3)

③  aspl> v
    (view symbol table)

④  aspl> display a123
    (display the set variable a123)

 

● Tickable Predicates for fU

This fU is tickable with predicates that are shown in the following table:

       a yellow note
fU`_  gets the elements union 
fU`c=  gets the elements union such that they have the same checksum 
fU`c~  gets the elements union such that they have different checksums 
fU`c~~  gets the elements union such that they have all over different checksums 
fU`h=  gets the elements union such that they have the same entropy 
fU`h~  gets the elements union such that they have different entropies 
fU`h~~  gets the elements union such that they have all over different entropies 
fU`mtm=  gets the elements union such that they have the same make time 
fU`mtm~  gets the elements union such that they have different make times 
fU`mtm~~  gets the elements union such that they have all over different make times 
fU`ks=  gets the elements union such that they have the same ksum 
fU`ks~  gets the elements union such that they have different ksums 
fU`ks~~  gets the elements union such that they have all over different ksums 
(C)2024 ASPL Inc.