In what way does oko1's solution not work for you?
Using your input of:
w1 w2 w3 [t4 w4] w5
produces:
w1 w2 w3 w4 t4 w5
using an elegance I'd be proud of. Is that not what you're after?
In reply to Re^3: printing array using map
by FunkyMonk
in thread printing array using map
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |