// Program to test using arrays as structures program var num = funct( r ) begin return r[ 0 ]; end, den = funct( r ) begin return r[ 1 ]; end, printRat = funct( r ) begin println( num( r ) + "/" + den( r ) ); end, r = { 3, 2 }; begin printRat( r ); end.