# array of local operations.
resource array6()

    write("starting")
    op myanswer[1:10]  (int x)


    write("sending")
    for [ i = 1 to 10 ] {
	send myanswer[i](i*100)
    }

    write("receiving")
    for [ i = 6 to 10 ] {
	int  j
	receive myanswer[i](j); write(i,j)
    }
    for [ i = 5 downto 1 ] {
	int  j
	receive myanswer[i](j); write(i,j)
    }
end
