CIDER function cider-eval-last-sexp can be used to execute the the code while editing the code inside the buffer. This function is by default binded to C-x C-e or C-x C-e.
CIDER manual says C-x C-e or C-c C-e will:
Evaluate the form preceding point and display the result in the echo area and/or ...
CIDER function cider-insert-last-sexp-in-repl can be used to execute the the code while editing the code inside the buffer and get the output pretty printed in a different buffer. This function is by default binded to C-c C-p.
CIDER manual says C-c C-p will
Evaluate the form preceding point and ...