mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
31
help/count
Normal file
31
help/count
Normal file
@@ -0,0 +1,31 @@
|
||||
NAME
|
||||
count - count elements of list or matrix satisfying a stated condition
|
||||
|
||||
SYNOPSIS
|
||||
count(x, y)
|
||||
|
||||
TYPES
|
||||
x list or matrix
|
||||
y string
|
||||
|
||||
return int
|
||||
|
||||
DESCRIPTION
|
||||
For count(x, y), y is to be the name of a user-defined function;
|
||||
count(x,y) then returns the number of elements of x for which y
|
||||
tests as "true".
|
||||
|
||||
EXAMPLE
|
||||
> define f(a) = (a < 5)
|
||||
> A = list(1,2,7,6,4,8)
|
||||
> count(A, "f")
|
||||
3
|
||||
|
||||
LIMITS
|
||||
none
|
||||
|
||||
LIBRARY
|
||||
none
|
||||
|
||||
SEE ALSO
|
||||
XXX - fill in
|
Reference in New Issue
Block a user