Done Small enhancement to @WORD

May 20, 2008
12,167
133
Syracuse, NY, USA
Let @WORD[n-,string] return all words from the nth one to the end.

As it is now, that syntax is accepted, but does something peculiar, giving n+1 words starting at word n.
Code:
v:\> echo %@word[1-,a b c d e f g h i]
b c

v:\> echo %@word[2-,a b c d e f g h i]
c d e

v:\> echo %@word[3-,a b c d e f g h i]
d e f g
 

Similar threads