Reverse words in a string: Difference between revisions
→{{header|BQN}}: Array-oriented version
(→BQN: add) |
(→{{header|BQN}}: Array-oriented version) |
||
Line 674:
Join∘⌽∘Split¨ text</syntaxhighlight>
Alternative based on the approach described in [https://saltysylvi.github.io/blog/flat1.html this blog post]:
<syntaxhighlight lang="bqn">{(⍒+`∨⟜»' '=𝕩)⊏𝕩}¨ text</syntaxhighlight>
{{out}}
<pre>┌─
|