Forum Discussion

akashreuben7's avatar
akashreuben7
New Contributor
5 years ago

How to print all possible combinations of a given array

Hello Team I have an array of  def Z = ['a','b','c','d','e','f','g'] how to get all possible 3 alphabet combinations without each element repeat by itself.  Output required: [a.b.c],[a,b,d] and...