lispdoc - results for count |
(count item sequence &rest args &key from-end (start 0) (end nil) (key nil) (test #'eql test-p) (test-not nil test-not-p)) | Function: Return the number of elements in SEQUENCE satisfying a test with ITEM, which defaults to EQL.
|
Example:(defun count-difference (player board) "Count player's pieces minus opponent's pieces." (- (count player board) (count (opponent player) board))) | Mentioned in: CLtL2 - 14.4. Searching Sequences for Items CLtL2 - 26.12.2. Destructuring CLtL2 - 26.3.2. Kinds of Loop Clauses CLtL2 - 26.8. Value Accumulation HyperSpec - 6.1.3.3 Examples of COUNT clause HyperSpec - Function COUNT, COUNT-IF, COUNT-IF-NOT On Lisp - Avoiding Capture by Prior Evaluation On Lisp - New Utilities (Computation at Compile-Time) PCL - sequence iterating functions Successful Lisp - chapter13 |
(count-if pred sequence &rest args &key from-end (start 0) (end nil) (key nil)) | Function: Return the number of elements in SEQUENCE satisfying PRED(el).
|
Example:(defun length7 (list) (count-if #'true list)) | Mentioned in: HyperSpec - Function COUNT, COUNT-IF, COUNT-IF-NOT Successful Lisp - chapter13 |
(count-if-not pred sequence &rest args &key from-end (start 0) (end nil) (key nil)) | Function: Return the number of elements in SEQUENCE not satisfying TEST(el).
|
| Mentioned in: HyperSpec - Function COUNT, COUNT-IF, COUNT-IF-NOT Successful Lisp - chapter13 | |
(hash-table-count hash-table) | Function: Return the number of entries in the given HASH-TABLE.
|
| Mentioned in: CLtL2 - 16.1. Hash Table Functions CLtL2 - 6.3. Equality Predicates HyperSpec - Function HASH-TABLE-COUNT | |
(alexandria.0.dev:count-permutations n &optional (k n)) | Function: Number of K element permutations for a sequence of N objects. K defaults to N
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |