doc-src/TutorialI/Misc/pairs.thy
author wenzelm
Tue, 25 Jul 2000 00:02:52 +0200
changeset 9434 d2fa043ab24f
parent 8745 13b32661dde4
child 9541 d17c0b34d5c8
permissions -rw-r--r--
do nat pass theory value, but sg_ref;

(*<*)
theory pairs = Main:;
term(*>*) "let (x,y) = f z in (y,x)";
(*<*)
term(*>*) "case xs of [] \\<Rightarrow> 0 | (x,y)#zs \\<Rightarrow> x+y"
(**)(*<*)
end
(*>*)