script3.stx
author convert-repo
Fri, 20 Dec 2019 04:29:09 +0000
changeset 1619 71f3cbb5c172
parent 1498 71eac66f2d96
permissions -rwxr-xr-x
update tags

#!/usr/bin/env stx --script

"/
"/ a word count script
"/
|wc|

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