doc-src/TutorialI/Misc/pairs.thy
author paulson
Fri, 26 May 2000 18:04:17 +0200
changeset 8983 15bd7d568fb2
parent 8745 13b32661dde4
child 9541 d17c0b34d5c8
permissions -rw-r--r--
named the primrec clauses of upt

(*<*)
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
(*>*)