Annotation of 43BSD/contrib/icon/book/f/first.icn, revision 1.1

1.1     ! root        1: procedure first(i)
        !             2:    count := 0
        !             3:    while line := read() do {
        !             4:       count := count + 1
        !             5:       if count > i then break
        !             6:       write(line)
        !             7:       }
        !             8:    if i > count then fail
        !             9:    else return
        !            10: end

unix.superglobalmegacorp.com

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