choose

ABSTRACT

Calculates the number of ways of choose r objects from a collection of n items

PARAMETERS
nthe size of the collection
rthe number of items we are trying to choose
RETURN

the the number of ways of choose r objects from a collection of n items

DECLARATION
func choose(n, r)