Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_math
permutations/2
Description
permutations/2 is an Erlang function exported by "age_math" module.
Returns how many times (permutations) Selected items can be grouped 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:permutations(10, 2). 90