ASPL Manual v 1.00
© 2024 by SetSphere.COM


8. 2
   cU gets the element-checksums union

 

logo

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

cU`mtm~ a1 [a2 .. aN]

cU/mtm~ a1 [a2 .. aN]

cU

When specified by itself then the operation is performed on the object on top of the stack and the one that is one below it, then the result is pushed on the partition stack

tsetop  asetoid  1**  commu        ins:H_H_H  ous:H_H_AH

●  Operator cU gets the element-checksums union

Use the operator cU or its equivalent c*U to get the union of elements in set variables by grouping them according to their checksums.

 

cU Example
In this example we will compare the files between two directories based on their checksums. File with the different names but with same checksums will be revealed. The union operation of the checksums display all checksums and their corresponding file names.

 

cU Operation

aspl WS1
    (start ASPL loading the sample workspace WS1 )

①  aspl> c*U a1 a2
    (show the union of the checksums in the datasets a1 and a2)

The c*U is the same as cU

②  aspl> cU a1 a2
    (show the union of the checksums in the datasets a1 and a2)

③  aspl> cU`mtm~ a1 a2
    (show the union of the checksums in the datasets a1 and a2 whose mtimes are different)

 

● Tickable Predicates for cU

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

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