combinations
combinations(array, n)
Generate all combinations of n
elements from an indexable object. Because the number of combinations can be very large, this function returns an iterator object. Use collect(combinations(array,n))
to get an array of all combinations.
Examples
See Also
Array, broadcast, cat, combinations, conj!, digits!, fieldnames, fill, fill!, last, length, maximum, minimum, ones, parent, parentindexes, partitions, permutations, pointer, pointer_to_array, promote_shape, rand!, reshape, scale, similar, sum, sum_kbn, takebuf_array, transpose!, vec, zeros,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.