Method Array.combinations() Method combinations array(array) combinations(array arr, int(0..) len) Description Returns an array of all combinations of length len of elements from arr. See also permute()