Go
Generate combinations from array in Go
Using golang-combinations library.
Sometimes we need to generate combinations from arrays of strings to do some data manipulation. There is existing library in Go could help us do that.
Running this will show
[normal]
[overweight]
[normal overweight]
[obese]
[normal obese]
[overweight obese]
[normal overweight obese]
[underweight]
[normal underweight]
[overweight underweight]
[normal overweight underweight]
[obese underweight]
[normal obese underweight]
[overweight obese underweight]
[normal overweight obese underweight]
~~Hope it helps~~.
PEACE!!