<p><span class="h-card" translate="no"><a href="https://xoxo.zone/@annika" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>annika</span></a></span> Are the strings allowed to repeat?</p><p>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):</p><pre><code>(?⍨≢)⍛⊇ "has" "anyone" "really" "been" "far"<br></code></pre><p>Well, this only generates the permutation. Unfortunately, interspersing the spaces between the words is a bit ugly:</p><pre><code>⊃,/↓,@\s,⍪ (?⍨≢)⍛⊇ "has" "anyone" "really" "been" "far"<br></code></pre><p><a href="https://kapdemo.dhsdevelopments.com/clientweb2/#%E2%8A%83%2C%2F%E2%86%93%2C%40%5Cs%2C%E2%8D%AA%20(%3F%E2%8D%A8%E2%89%A2)%E2%8D%9B%E2%8A%87%20%22has%22%20%22anyone%22%20%22really%22%20%22been%22%20%22far%22" target="_blank" rel="nofollow noopener noreferrer">Example</a></p>
Reply