ASPL Manual v 1.00
© 2024 by SetSphere.COM
13. 12#p gets the cardinality of a binned partitioned set
#p [a1 .. aN] where [a1 .. aN] are set variables
#p
When specified by itself then display the cardinality of the dataset on the top of the unswer stack
cardinality text 01* notcommu ins:H_H_H_*H ret:text
Use the operator #p to display the cardinality of a binned partitioned set variable. When the operator is followed by multiple variables then show the cardinality of all variables. To show the cardinality of the dataset resulting from the last partition operation, just issue #p and that will show the cardinality of the last operation pushed on the top of the unswer stack.
#p EXAMPLEIn this example we start ASPL loading the sample workspace WS1 then we issue the operator #p to show how to get the cardinality of binned partitioned variables.
#p OPERATION# aspl WS1
(start ASPL loading the sample workspace WS1 )
① aspl>
tattler 1
(toggle tattler)
② aspl>
v
(print the symbol table)
③ aspl>
fP a1 a2 a3
(partition a1 a2 a3, notice from tattler that the unswer stack is being written)
④ aspl>
uns
(display the partitioned unswer stack)
⑤ aspl>
#p
(display the cardinality of the element on the top of unswer stack)