# \#functions

**URL:** https://discuss.ocaml.org/tag/functions/579.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Passing (the output of) one function straight into another](https://discuss.ocaml.org/t/passing-the-output-of-one-function-straight-into-another/13511)

<div class="topic-metadata">

**Author:** [@hmackiernan](https://discuss.ocaml.org/u/hmackiernan)\
**Replies:** 3\
**Last updated:** [November 27, 2023, 5:15pm UTC](https://discuss.ocaml.org/t/passing-the-output-of-one-function-straight-into-another/13511 "2023-11-27T17:15:28Z")

</div>

I am currently just starting out with OCaml and am working through this tutorial: Inside the utop REPL, We’ve defined a recursive function range that takes two int lo and hi and returns a list from lo to hi let rec …

---

## [\[Q\] How to distinguish function definition scopes? Because compiler is complaining](https://discuss.ocaml.org/t/q-how-to-distinguish-function-definition-scopes-because-compiler-is-complaining/11729)

<div class="topic-metadata">

**Author:** [@anzhi0708](https://discuss.ocaml.org/u/anzhi0708)\
**Replies:** 4\
**Last updated:** [March 20, 2023, 4:33pm UTC](https://discuss.ocaml.org/t/q-how-to-distinguish-function-definition-scopes-because-compiler-is-complaining/11729 "2023-03-20T16:33:01Z")

</div>

Hello there! It’s me again, the OCaml noob. type choice = | Add\_semicolon | Add\_keyword\_in | Add\_nothing Now I know that you can use let f x = ... to define a function but I still get confused whether to add the keywor…
