@annika Are the strings allowed to repeat?
I will now do what all obnoxious language designers do, and that is to show how nice and concise an algorithm is in one's own language (this is a version where repeats are not allowed):
(?⍨≢)⍛⊇ "has" "anyone" "really" "been" "far"Well, this only generates the permutation. Unfortunately, interspersing the spaces between the words is a bit ugly:
⊃,/↓,@\s,⍪ (?⍨≢)⍛⊇ "has" "anyone" "really" "been" "far"