ASPL Manual v 1.00
© 2024 by SetSphere.COM
4. 7dP gets the subgroups partition
dP a1 [a2 .. aN] where a1 [a2 .. aN] are set variables
dP`mtm~ a1 [a2 .. aN]
dP/mtm~ a1 [a2 .. aN]
dP
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 dP to get the subgroups partition of one or many set variables. The partitions are based on the group label or labels found in each set variable.
dP EXAMPLEThe following example shows how to display the subgroups partition of three directories. We start ASPL loading the sample workspace WS1 then we issue the partition operators.
dP 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 dP
This dP is tickable with predicates that are shown in the following table:
a yellow note
dP`_ gets the subgroups partition dP`c= gets the subgroups partition such that they have the same checksum dP`c~ gets the subgroups partition such that they have different checksums dP`c~~ gets the subgroups partition such that they have all over different checksums dP`h= gets the subgroups partition such that they have the same entropy dP`h~ gets the subgroups partition such that they have different entropies dP`h~~ gets the subgroups partition such that they have all over different entropies dP`mtm= gets the subgroups partition such that they have the same make time dP`mtm~ gets the subgroups partition such that they have different make times dP`mtm~~ gets the subgroups partition such that they have all over different make times dP`mtm< gets the subgroups partition such that they have a prior make time dP`mtm<= gets the subgroups partition such that they have prior or same make time dP`mtm> gets the subgroups partition such that they have more recent make time dP`mtm>= gets the subgroups partition such that they have more recent or same make time dP`ks= gets the subgroups partition such that they have the same ksum dP`ks~ gets the subgroups partition such that they have different ksums dP`ks~~ gets the subgroups partition such that they have all over different ksums