Is there a Phobos function to turn this:
string[] words = "foo bar doo".split();
into:
string[] res = ["foo bar doo",
"foo doo bar",
"bar foo doo",
"bar doo foo",
"doo foo bar",
"doo bar foo"];
So basically all combinations of some number of strings into a string
array. I suppose there's some generic way to do this too.