script3.stx
author convert-repo
Mon, 18 Jan 2016 04:54:22 +0000
changeset 1405 4e58e6ca74cb
parent 1347 40c47f6d2dc6
child 1498 71eac66f2d96
permissions -rwxr-xr-x
update tags

#!stx --script
"/
"/ a word count script
"/
|wc|

wc := 0.
[Stdin atEnd] whileFalse:[
    wc := wc + Stdin nextLine asCollectionOfWords size.
].
wc printCR.