On 2018-11-05 9:52 AM, Rob van der Heij wrote: >> ... a: w2 . print a||||":" nw.11 print substr(a||||":",12) n ... >> > Ah, would you care for this one? > > .. a: w1-w2 - set #0:=length(a)+1 w1 1 w2 nw.11 w3-* nw ,:, (#0) ...
That doesn't put the overrun anywhere, and it assumes only one space between words in the input. That syntax for the output placement would help if I could put "next" there: ... set #0:=11 print ... ('nw',#0) print ... n ... But it requires a number, and in the general case I don't necessarily know what column I'm at in the output. If I could interrogate that, I could pad without having to write the overrun separately or even build a string expression: ... set #0:=outpos()+12 a nw ":" n "" (#0) ... ¬R