focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / count
1 NAME
2     count - count elements of list or matrix satisfying a stated condition
3
4 SYNOPSIS
5     count(x, y)
6
7 TYPES
8     x           list or matrix
9     y           string
10
11     return      integer
12
13 DESCRIPTION
14     For count(x, y), y is to be the name of a user-defined function;
15     count(x,y) then returns the number of elements of x for which y
16     tests as "true".
17
18 EXAMPLE
19     > define f(a) = (a < 5)
20     > A = list(1,2,7,6,4,8)
21     > count(A, "f")
22         3
23
24 LIMITS
25     none
26
27 LINK LIBRARY
28     none
29
30 SEE ALSO
31     select, modify
32