Annotation of 43BSD/contrib/icon/test/std61.icn, revision 1.1.1.1

1.1       root        1: record array(a,b,c,d,e,f,g)
                      2: 
                      3: procedure dummy(u,v,x,y,z)
                      4:    suspend u | v
                      5:    return x
                      6: end
                      7: 
                      8: procedure main()
                      9:    write("every write(\"abcdef\" ? tab(1 to 10)) ----> ",image(every write("abcdef" ? tab(1 to 10))) | "none")
                     10:    write("every write(\"abcde\" ? while move(2) ? move(1)) ----> ",image(every write("abcde" ? while move(2) ? move(1))) | "none")
                     11:    write("s := \"abcdef\" ----> ",image(s := "abcdef") | "none")
                     12:    write("s ?:= move(3) ----> ",image(s ?:= move(3)) | "none")
                     13:    write("s := \"abcdef\" ----> ",image(s := "abcdef") | "none")
                     14:    write("every write(s ?:= upto(&lcase)) ----> ",image(every write(s ?:= upto(&lcase))) | "none")
                     15:    write("s := \"this is the time to work it all out\" ----> ",image(s := "this is the time to work it all out") | "none")
                     16:    write("every write(s ? tab(find(\" \"))) ----> ",image(every write(s ? tab(find(" ")))) | "none")
                     17:    write("s := \"xxxxxx\" ----> ",image(s := "xxxxxx") | "none")
                     18:    write("every s ? write(=(\"a\" | \"x\")) ----> ",image(every s ? write(=("a" | "x"))) | "none")
                     19:    write("\"abcdef\" ? (tab(0) & (while write(move(-1)))) ----> ",image("abcdef" ? (tab(0) & (while write(move(-1))))) | "none")
                     20:    write("\"abcdef\" ? (tab(0) & (while write(move(\"a\")))) ----> ",image("abcdef" ? (tab(0) & (while write(move("a"))))) | "none")
                     21: end

unix.superglobalmegacorp.com

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