let max a b = if a > b then a else b;;         (* 일반적 function 선언 방식 *)




fun x y -> if x >b then x else y;;                 (* anonymous function 선언 방식 *)






let my_function f x y = f x y;;

    

      (* you could write *)


let my_function (fun x y -> if x > b then x else y) 5 9 ;;


(* which will return 9 *)


(* you should notice that "(fun x y -> if x > y then x else y)" part was inserted into 'f' parameter)


WRITTEN BY
서상호

,