Annotation of 43BSD/contrib/icon/test/std59.icn, revision 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("any('aeiou',&lcase) ----> ",image(any('aeiou',&lcase)) | "none")
        !            10:    write("any('aeiou',&ucase) ----> ",image(any('aeiou',&ucase)) | "none")
        !            11:    write("every write(any('aeiou',&lcase,1 to 5,10 to 20)) ----> ",image(every write(any('aeiou',&lcase,1 to 5,10 to 20))) | "none")
        !            12:    write("match(\"abc\",\"abcabcabcabc\") ----> ",image(match("abc","abcabcabcabc")) | "none")
        !            13:    write("match(\"abc\",\"xabcabcabcabc\") ----> ",image(match("abc","xabcabcabcabc")) | "none")
        !            14:    write("every write(match(\"abc\",\"xabcabcabcabc\",1 to 10,1 to 10)) ----> ",image(every write(match("abc","xabcabcabcabc",1 to 10,1 to 10))) | "none")
        !            15:    write("upto('56d&',&lcase) ----> ",image(upto('56d&',&lcase)) | "none")
        !            16:    write("upto('56d&',&ucase) ----> ",image(upto('56d&',&ucase)) | "none")
        !            17:    write("upto('56d&',&lcase,15) ----> ",image(upto('56d&',&lcase,15)) | "none")
        !            18:    write("many(&lcase,\"this is a Test\") ----> ",image(many(&lcase,"this is a Test")) | "none")
        !            19:    write("many(&lcase,\"this is a Test\",5) ----> ",image(many(&lcase,"this is a Test",5)) | "none")
        !            20:    write("many(&lcase,\"this is a Test\",5,9) ----> ",image(many(&lcase,"this is a Test",5,9)) | "none")
        !            21:    write("find(\"aa\",\"xxaaaaaa\") ----> ",image(find("aa","xxaaaaaa")) | "none")
        !            22:    write("every write(find(\"aa\",\"xxaaaaaa\")) ----> ",image(every write(find("aa","xxaaaaaa"))) | "none")
        !            23:    write("every write(find(\"aa\",\"xxaaaaaa\",4,7)) ----> ",image(every write(find("aa","xxaaaaaa",4,7))) | "none")
        !            24:    write("bal('-','(',')',\"-35\") ----> ",image(bal('-','(',')',"-35")) | "none")
        !            25:    write("bal('+','(',')',\"((2*x)+3)+(5*y)\") ----> ",image(bal('+','(',')',"((2*x)+3)+(5*y)")) | "none")
        !            26:    write("every write(bal('+','(',')',\"((2*x)+3)+(5*y)\",1 to 10)) ----> ",image(every write(bal('+','(',')',"((2*x)+3)+(5*y)",1 to 10))) | "none")
        !            27:    write("bal('+','[','[',\"[[2*x[+3[+[5*y[\") ----> ",image(bal('+','[','[',"[[2*x[+3[+[5*y[")) | "none")
        !            28:    write("bal('+','([','])',\"([2*x)+3]+(5*y]\") ----> ",image(bal('+','([','])',"([2*x)+3]+(5*y]")) | "none")
        !            29:    write("bal(,,,\"()+()\") ----> ",image(bal(,,,"()+()")) | "none")
        !            30:    write("bal(&cset,,,\"()+()\") ----> ",image(bal(&cset,,,"()+()")) | "none")
        !            31:    write("bal([],,,\"\") ----> ",image(bal([],,,"")) | "none")
        !            32: end

unix.superglobalmegacorp.com

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