pnth
Pnth is a term used in theoretical computer science and mathematics to denote an operator that returns the n-th element of a sequence that satisfies a given predicate. The prefix p stands for a predicate or property, and nth indicates indexing within the filtered subsequence.
Formally, let S be a sequence (s1, s2, s3, ...), p(x) a boolean predicate, and n a positive
Equivalently, pnth(S, p, n) equals the n-th element of the filtered sequence S|p, where S|p = (si in
Applications of pnth appear in formal descriptions of selection under constraints, algorithmic design that involves constrained
Etymology and usage vary by author; pnth is not a standardized operator in mainstream mathematics or computer