Functions Index :: C :: Count

[<< up one level]

Module:

numeric :: core

Definition:

Count(val "x1", val "x2", val "x3", val "x4", ... , val "x20")

Description:

Returns the count of its arguments (ie the number of defined arguments in the function's argument list). [1]

Examples:

n = Count(1, 3, 5, 7) # n == 4

v1 = 3.24

v2 = Undef()

n = Count(1, 3, v1, v2) # n == 3

 

[<< top]

 


[1]: The function can handle up to 20 arguments. This number is chosen as a good balance between usability and speed. If more arguments are needed use an array and the ArraySum function, or a suitable function of the array package.