[very beginner] function

"[email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
I understand this

# function x -> x*x ;;

But don't understand this

# (function x -> x * x) 5 ;;

It is a call of the function? Why do I have to put the complete
function-definition again there?
Isn't there a simpler way? Something like

# x (5) ;;
- : int = 25
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.