# How does one print a function value?

**URL:** <https://discuss.ocaml.org/t/how-does-one-print-a-function-value/4337>\
**Category:** Learning\
**Created:** [September 9, 2019, 4:19pm UTC](https://discuss.ocaml.org/t/how-does-one-print-a-function-value/4337 "2019-09-09T16:19:39Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ivg](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/ivg/32/103_2.png) [@ivg](https://discuss.ocaml.org/u/ivg)\
**Post date:** [September 9, 2019, 4:44pm UTC](https://discuss.ocaml.org/t/how-does-one-print-a-function-value/4337/12 "2019-09-09T16:44:43Z")

</div>

No, you can’t do this, unless you’re going to bring in the compiler internals and use the compiler libs.

> Im trying to use toplevel without having to re open it every time so Im just using a script.

Yep, so that’ts the crux of the problem. Indeed, reopening it every time you make a change is indeed painful and definitely not the way it was designed. Have you read this [topic](https://discuss.ocaml.org/t/ocaml-repl-driven-development/4068/4)?

---

_[View the full topic](https://discuss.ocaml.org/t/how-does-one-print-a-function-value/4337)._
