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


4. 2
   fP gets the elements partition

 

logo

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

fP`ks~ a1 [a2 .. aN]

fP

When specified by itself then get the partition of the object on top of stack and one below top of stack

psetop  psetoid  1**  commu        ins:H_H_H  ous:H_H_H_H

●  Operator fP gets the elements partition

Use the operator fP to get the elements partition of one or many set variables. The partitions are based on the group label or labels found in each set variable.

 

fP EXAMPLE1
The following example shows how to display the files partition of three directories. We start ASPL loading the sample workspace WS1 then we issue the partition operators.

 

fP OPERATION1

aspl WS1
    (start ASPL loading the sample workspace WS1)

①  aspl> fP a1 a2 a3
    (display the elements (or filenames) partition of a1 a2 a3)

②  aspl> dP a1 a2 a3
    (display the subgroups (or subdirectories) partition of a1 a2 a3)

③  aspl> gP a1 a2 a3
    (display the subdirectories and files partition of a1 a2 a3)

④  aspl> gP`c~ a1 a2 a3
    (display the subdirectories and files partition of a1 a2 a3 such that checksums are unequal)

 

fP EXAMPLE2

The following example shows how to display the subgroups and elements partition of the RANDONEBITMIX datasets. To test with this operation, start ASPL by loading the sample workspace RANDONEBITMIX and follow the operations below.

 

fP OPERATION2

Operation:-xid opera123 -briefmaj "fP OPERATION2" -title "fP Operation2"

aspl RANDONEBITMIX

①  aspl> fP g1 g2 g3
    (display the elements partition of g1 g2 g3)

②  aspl> dP g1 g2 g3
    (display the subgroups partition of g1 g2 g3)

③  aspl> gP g1 g2 g3
    (display the element and subgroups partition of g1 g2 g3)

 

● Tickable Predicates for fP

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

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