Piping to a function

Oct 14, 2015
17
0
Is it possible to pipe to a function like @word? Seems like it should be easy but my brain isn't seeing the process for some reason.

Thanks
 
May 20, 2008
11,845
120
Syracuse, NY, USA
Something like this might suffice.

Code:
v:\> echo one two three | (do x in @con (echo %@word[1,%x]))
two

Unix's "cut" or any version of cut.exe (Gnu, for example) could also be used.[/code]