Annotation of 43BSD/contrib/icon/book/08/words2.icn, revision 1.1.1.1

1.1       root        1: procedure words(k)
                      2:    local wchar, wordlist, line, i, j
                      3:    wchar := &lcase ++ &ucase ++ '\'-'
                      4:    wordlist := []
                      5:    while line := read() do {
                      6:       i := 1
                      7:       while j := upto(wchar,line,i) do {
                      8:          i := many(wchar,line,j)
                      9:          put(wordlist,line[i:j])
                     10:          if *wordlist = k then break break
                     11:          }
                     12:       }
                     13:    return wordlist
                     14: end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.