# \#weak

**URL:** https://discuss.ocaml.org/tag/weak/602.md

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

---

## [Weak type when partitioning a list](https://discuss.ocaml.org/t/weak-type-when-partitioning-a-list/12496)

<div class="topic-metadata">

**Author:** [@vivanov](https://discuss.ocaml.org/u/vivanov)\
**Replies:** 2\
**Last updated:** [June 28, 2023, 2:28pm UTC](https://discuss.ocaml.org/t/weak-type-when-partitioning-a-list/12496 "2023-06-28T14:28:44Z")

</div>

Hey, I am looking to get first n elements of a list: let rec first\_helper accum n l = match n, l with | 0, \_ -\> accum |\> List.rev | n, h :: t -\> first\_helper (h :: accum) (n - 1) t | \_, \_ -\> accum |\> List.…
