Once upon a time I wrote a nifty little snippet that inserted dashes into a string.
Say I have
a←'abcdefghij'
and want 'a-bcd-efg-ij'
That is: insert a dash at index 2, 6 and 10.
The row I've forgotten was something like this:
('---',a)[2,6,10,⍳⍴a]
Any ideas?