summaryrefslogtreecommitdiff
path: root/ipl/packs/euler/t4.eul
blob: fa9c0b9ea58fe666cd45ba569ffef7b686f2ecf8 (plain)
1
2
3
4
5
6
7
8
begin new p; new a; new i;
 p <- 'formal x; formal k;
	begin k <- k+1; out x end';
 i <- 1;
 a <- (4,9,16);
 p(a[i],@i); p('a[i]',@i); out i
 (* should write: 4 16 3 *)
end