ASPL Guide to Operations v 1.00
© 2024 by SetSphere.COM
4. 17cP gets the element-checksums partition
cP a1 [a2 .. aN] where a1 [a2 .. aN] are set variables
cP`mtm~ a1 [a2 .. aN]
cP/mtm~ a1 [a2 .. aN]
cP
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
tsetop pasetoid 1** commu ins:H_H_H ous:H_H_H_AH
Use the operator cP to get the partition of datasets based on the element checksums. Use the cP operator to get the elements partition of one or many set variables. The partitions are based on the element checksums in each set variable.
cP EXAMPLEThe following example shows how to partition three directories based on their file checksums. To test with this operation, start ASPL by loading the sample workspace WS1 then we issue the cP operation.
cP OPERATION# aspl WS1
① aspl>
cP a3 a4 a5
(partition a3 a4 a5 based on their element (or filename) checksums)
② aspl>
cP`mtm= a3 a4 a5
(partition a3 a4 a5 based on their element (or filename) checksums such that the mtimes are equal)
③ aspl>
cP`mtm~ a3 a4 a5
(partition a3 a4 a5 based on their element (or filename) checksums such that the mtimes are unequal)
● Tickable Predicates for cP
This cP is tickable with predicates that are shown in the following table:
a yellow note
cP`_ gets the element-checksums partition cP`c= gets the element-checksums partition such that they have the same checksum cP`c~ gets the element-checksums partition such that they have different checksums cP`c~~ gets the element-checksums partition such that they have all over different checksums cP`h= gets the element-checksums partition such that they have the same entropy cP`h~ gets the element-checksums partition such that they have different entropies cP`h~~ gets the element-checksums partition such that they have all over different entropies cP`mtm= gets the element-checksums partition such that they have the same make time cP`mtm~ gets the element-checksums partition such that they have different make times cP`mtm~~ gets the element-checksums partition such that they have all over different make times cP`ks= gets the element-checksums partition such that they have the same ksum cP`ks~ gets the element-checksums partition such that they have different ksums cP`ks~~ gets the element-checksums partition such that they have all over different ksums