9 lines
206 B
D
9 lines
206 B
D
|
|
import tango.io.Console;
|
||
|
|
import tango.text.stream.SimpleIterator;
|
||
|
|
|
||
|
|
void main (char[][] args) {
|
||
|
|
foreach (word; new SimpleIterator!(char)(" ", Cin.input)) {
|
||
|
|
// do something with each word
|
||
|
|
}
|
||
|
|
}
|