lec4 Scope functions and data

# Let x 1 let f y x y let x 2 let y 3 f x

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: " , + + ;# ,\$ C + +&< + ( .!! (e1 e2) ' # !! 1& , ,, 1/ +, # & !! let a = 20;; let f let let a ;; f 0; x a g + = = 0+1 in z = a + z in (g x) e2 ;, < e1 .!! * " 0 0 + ( e1 + F ;, " " x F \$ +1 e< 4 " ;, < \$ \$ + +, " * " * " e2 \$ +1 e " " - ; < + + \$1 \$ + x 3 - ! let x = 1;; let f y = x + y;; let x = 2;; let y = 3;; f (x + y);; - ! let x = 1;; let f y = let x = 2 in fun z -> x + y + z ;; let x = 100;; let g =(f 4);; let y = 100;; (g 1);; B + ' ' 5 x\$ y\$ " ; + F "< C z 9 +1 -! x + y + z " + + H - ! let f g = let x = 0 in g 2 ;; let x = 100;; let h y = x + y;; f h;; ' 0 > 0 3 2 ! , ! \$ + " ! " - / \$ 4 " \$ + , + ' 0 ? 2 ! +, 1 ! - ' ( 0 0 1 A > , " 4 , , + \$ 1% 14 + \$ & " , \$ + #/ / + , ? \$ Expressions ! -+ ( C ? ' ? A" 0 7 \$ \$ 4 49 4 ! -+ 1! * C +" :1! ' 0 0 / 1 + ; ! \$ <4 + ! 1! + 4# & 3 * *( * 1% + ! \$ , -! ' ! 0 0 0 8 / \$ 4" + 4, 1 ,, > \$ A /4!...
View Full Document

## This note was uploaded on 02/14/2008 for the course CSE 130 taught by Professor Jhala during the Fall '06 term at UCSD.

Ask a homework question - tutors are online