Word Index

Create a class that stores a list of words, and for each word a list of lines that word appears on.

Consider the poem:

A stranger came to the door at eve,
     And he spoke the bridegroom fair.
He bore a green-white stick in his hand,
     And, for all burden, care.
He asked with the eyes more than the lips
     For a shelter for the night,
And he turned and looked at the road afar
     Without a window light.

Create an index:

index.png

https://repl.it/@JimSkon/IndexBuild

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2019-11-12 - JimSkon
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback