How can I eval a function in repl?

Can you explain better what you mean, give a concrete example maybe?