Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_math
combinations/2
Description
combinations/2 is an Erlang function exported by "age_math" module.
Returns how many permutations of Selected can be grouped without repetition within Total.
References
None
Parameters
Name
Type
Total
integer()
Total number of items.
Selected
Selected number of items.
Result
Value or Type
Returns the number of permutations.
Code Sample
> age_math:combinations(10, 2). 45