ASPL Manual v 1.00
© 2024 by SetSphere.COM
4. 12gP gets the subgroups and the elements partition
gP a1 [a2 .. aN] where a1 [a2 .. aN] are set variables
gP`mtm~ a1 [a2 .. aN]
gP/mtm~ a1 [a2 .. aN]
gP
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 stack
psetop psetoid 1** commu ins:H_H_H ous:H_H_H_H
Use the operator gP to get the groups partition of one or many set variables. The partitions are based on the group label or labels found in each set variable.
gP EXAMPLEThe following example shows how to display the subdirectories and files partition of three directories. We start ASPL loading the sample workspace WS1 then we issue the partition operators.
gP OPERATION# 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 filenames partition of a1 a2 a3)
④ aspl>
gP`c~ a1 a2 a3
(display the subdirectories and filenames partition of a1 a2 a3 such that checksums are unequal)
● Tickable Predicates for gP
This gP is tickable with predicates that are shown in the following table:
a yellow note
gP`_ gets the subgroups and the elements partition gP`c= gets the subgroups and the elements partition such that they have the same checksum gP`c~ gets the subgroups and the elements partition such that they have different checksums gP`c~~ gets the subgroups and the elements partition such that they have all over different checksums gP`h= gets the subgroups and the elements partition such that they have the same entropy gP`h~ gets the subgroups and the elements partition such that they have different entropies gP`h~~ gets the subgroups and the elements partition such that they have all over different entropies gP`mtm= gets the subgroups and the elements partition such that they have the same make time gP`mtm~ gets the subgroups and the elements partition such that they have different make times gP`mtm~~ gets the subgroups and the elements partition such that they have all over different make times gP`ks= gets the subgroups and the elements partition such that they have the same ksum gP`ks~ gets the subgroups and the elements partition such that they have different ksums gP`ks~~ gets the subgroups and the elements partition such that they have all over different ksums