ASPL Programming ver 1.00
© 2024 Bassem W. Jamaleddine


4. 2
   fP gets the elements partitions

 

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 partitions

Use the fP operator 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 subdirectory and file partitions of three directories. To test with this operation, start ASPL by loading the sample WS1 workspace and follow the operations below.

 

fU Operation1

Operation:-xid opera123 -briefmaj "fP OPERATION1" -title "fP Operation1"

aspl WS1

①  aspl> fP  a1 a2 a3
    (display the file partitions of a1 a2 a3)

②  aspl> dP  a1 a2 a3
    (display the subdirectory partitions of a1 a2 a3)

③  aspl> gP  a1 a2 a3
    (display the subdirectory and file partitions of a1 a2 a3)

④  aspl> gP`c~  a1 a2 a3
    (display the subdirectory and file partitions of a1 a2 a3 that have different checksum)

 

fP Example2

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

 

fU Operation2

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

aspl RANDONEBITMIX

①  aspl> fP  g1 g2 g3
    (display the element partitions of g1 g2 g3)

②  aspl> dP  g1 g2 g3
    (display the subgroup partitions of g1 g2 g3)

③  aspl> gP  g1 g2 g3
    (display the element and subgroup partitions 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 partitions 
fP`c=  gets the elements partitions such that they have the same checksum 
fP`c~  gets the elements partitions such that they have different checksums 
fP`c~~  gets the elements partitions such that they have all over different checksums 
fP`h=  gets the elements partitions such that they have the same entropy 
fP`h~  gets the elements partitions such that they have different entropies 
fP`h~~  gets the elements partitions such that they have all over different entropies 
fP`mtm=  gets the elements partitions such that they have the same make time 
fP`mtm~  gets the elements partitions such that they have different make times 
fP`mtm~~  gets the elements partitions such that they have all over different make times 
fP`ks=  gets the elements partitions such that they have the same ksum 
fP`ks~  gets the elements partitions such that they have different ksums 
fP`ks~~  gets the elements partitions such that they have all over different ksums 
(C)2024 ASPL Inc.