Standard ML of New Jersey (32-bit) v110.99 [built: Thu Dec 24 11:01:10 2020] - - fun f x = x * x; val f = fn : int -> int - - fun g x = x * x * x; val g = fn : int -> int - - - fn x => x * x; val it = fn : int -> int - - 345; val it = 345 : int - 4 + 345; val it = 349 : int - val x = 3; val x = 3 : int - x + 345; val it = 348 : int - val y = 345; val y = 345 : int - x + y; val it = 348 : int - 44 + y; val it = 389 : int - - - fn x => x*x; val it = fn : int -> int - - (fn x => x*x) 7; val it = 49 : int - - (fn x => x*x) 12; val it = 144 : int - - val f = fn x => x*x; val f = fn : int -> int - - f 12; val it = 144 : int - - - fun f x = x*x; val f = fn : int -> int - val f = fn x => x*x; val f = fn : int -> int -