Some J translations of some of the flat array programming techniques discussed in this article series: -
- Part 1: https://saltysylvi.github.io/blog/flat1.html
- Part 2: https://saltysylvi.github.io/blog/flat2.html
Reverse words
s =. 'here are some words'
p =. +/\ 0, 2 ~:/\ ' ' = s
echo s {~ |. \: p
NB. ==> ereh era emos sdrow