Page 8, in the example:
import std.stdio, std.string;
void main()
{
uint[string] dictionary;
foreach (line; stdin.byLine()) {
// Break sentence into words
// Add each word in the sentence to the vocabulary
foreach (word; splitter(strip(line))) {
if (word in dictionary)
On 11/15/10 7:31 AM, flyinghearts wrote:
Page 8, in the example:
import std.stdio, std.string;
void main()
{
uint[string] dictionary;
foreach (line; stdin.byLine()) {
// Break sentence into words
// Add each word in the sentence to the vocabulary
foreach (word;