# \#standardlibrary

**URL:** https://discuss.ocaml.org/tag/standardlibrary/129.md

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

---

## [Implementation of some functions in the Queue module](https://discuss.ocaml.org/t/implementation-of-some-functions-in-the-queue-module/13998)

<div class="topic-metadata">

**Author:** [@mariopereira](https://discuss.ocaml.org/u/mariopereira)\
**Replies:** 3\
**Last updated:** [February 4, 2024, 12:05pm UTC](https://discuss.ocaml.org/t/implementation-of-some-functions-in-the-queue-module/13998 "2024-02-04T12:05:37Z")

</div>

Very simply put (I am really sorry if this is a naive question): why are some functions of the Queue module (standard library), namely copy, iter, and fold implemented using a pattern let f = let rec f ... in …

---

## [How do you read the lines of a text file…](https://discuss.ocaml.org/t/how-do-you-read-the-lines-of-a-text-file/8834)

<div class="topic-metadata">

**Author:** [@K\_N](https://discuss.ocaml.org/u/K_N)\
**Replies:** 9\
**Last updated:** [November 18, 2021, 11:18am UTC](https://discuss.ocaml.org/t/how-do-you-read-the-lines-of-a-text-file/8834 "2021-11-18T11:18:57Z")

</div>

for years I have rewritten the same while loop that accumulates in a string list ref then catches End\_of\_file and returns List.rev of my accumulator (or a variant with with a tail rec function with the exception re-wrape…

---

## [Where's the Unix library?](https://discuss.ocaml.org/t/wheres-the-unix-library/8782)

<div class="topic-metadata">

**Author:** [@TimLeonard](https://discuss.ocaml.org/u/TimLeonard)\
**Replies:** 5\
**Last updated:** [November 9, 2021, 3:46pm UTC](https://discuss.ocaml.org/t/wheres-the-unix-library/8782 "2021-11-09T15:46:28Z")

</div>

I’m using ocaml 4.12.0 on a Mac, and the Unix standard library doesn’t appear to exist. For example, typing “Unix.time;;” to the prompt results in “Error: Reference to undefined global \`Unix’”. Do I need to do something …

---

## [Modern Standard Library Documentation](https://discuss.ocaml.org/t/modern-standard-library-documentation/2880)

<div class="topic-metadata">

**Author:** [@seadynamic8](https://discuss.ocaml.org/u/seadynamic8)\
**Replies:** 14\
**Last updated:** [November 14, 2018, 2:54pm UTC](https://discuss.ocaml.org/t/modern-standard-library-documentation/2880 "2018-11-14T14:54:17Z")

</div>

Hi All, I’m new to learning OCaml and also new to this forum. I am really enjoying learning OCaml, but there’s a lot of quirks and weird things since I feel like a lot of things are in transition right now, but one thi…

---

## [Don't print warnings from Parse module](https://discuss.ocaml.org/t/dont-print-warnings-from-parse-module/1569)

<div class="topic-metadata">

**Author:** [@remexre](https://discuss.ocaml.org/u/remexre)\
**Replies:** 0\
**Last updated:** [February 15, 2018, 7:04am UTC](https://discuss.ocaml.org/t/dont-print-warnings-from-parse-module/1569 "2018-02-15T07:04:24Z")

</div>

When I call Parse.use\_file, any warnings that occur are printed. Is there a way to suppress the warnings (or better yet, get them returned to me)?

---

## [What is the preferable solution for the role of standard library?](https://discuss.ocaml.org/t/what-is-the-preferable-solution-for-the-role-of-standard-library/1092)

<div class="topic-metadata">

**Author:** [@egoholic](https://discuss.ocaml.org/u/egoholic)\
**Replies:** 37\
**Last updated:** [December 22, 2017, 3:35am UTC](https://discuss.ocaml.org/t/what-is-the-preferable-solution-for-the-role-of-standard-library/1092 "2017-12-22T03:35:33Z")

</div>

OCaml’s standard library is poor and has a lot of design flaws. Which alternative do you recommend to use? JaneStreet’s core looks very nice, but as I’ve heard it is too big and not so popular.
