ASPL Manual v 1.00
© 2024 by SetSphere.COM


4. 5
   fD gets the elements symmetric difference

 

logo

fD a1 a2 [a3 .. aN]       where a1 a2 [a3 .. aN] are set variables

fD`mtm~ a1 a2 [a3 .. aN]

fD/mtm~ a1 a2 [a3 .. aN]

fD

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

setop  setoid  2*  notcommu        ins:H_H_H  ous:H_H_H

●  fD gets the elements symmetric difference

Use the operator fD to get the symmetric difference of elements between datasets represented by set variables.

 

fD EXAMPLE1
In the following example we want to find the files contained in each directory without being found in any other directory. We start ASPL loading the sample workspace WS1 and issue the command fD on the set variables.

 

fD OPERATION1

aspl WS1
    (start ASPL loading the sample workspace WS1)

①  aspl> v
    (print the symbol table showing the set variables)

②  aspl> fD a1 a2
    (get the symmetric difference between a1 a2)

③  aspl> fD a1 a2 a3
    (get the symmetric difference between a1 a2 a3)

④  aspl> fD a3 a4 a5
    (get the symmetric difference between a3 a4 a5)

 

fD EXAMPLE2
In the following example we want to compare JMX Jar files by finding these files contained in each JMX distribution that are not found in any other distribution. We start ASPL loading the sample workspace JMXJAR and issue the command fD on the set variables.

 

fD OPERATION2

aspl JMXJAR
    (start ASPL loading the sample workspace JMXJAR)

①  aspl> v
    (print the symbol table showing the set variables)

②  aspl> fD jmx1 jmx2
    (get the symmetric difference between jmx1 jmx2)

③  aspl> fD jmx1 jmx2 jmx3
    (get the symmetric difference between jmx1 jmx2 jmx3)

 

● Tickable Predicates for fD

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

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