# What is a pure function?

**URL:** <https://fortran-lang.discourse.group/t/what-is-a-pure-function/4654>\
**Category:** Poll\
**Created:** [November 4, 2022, 2:33am UTC](https://fortran-lang.discourse.group/t/what-is-a-pure-function/4654 "2022-11-04T02:33:08Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![everythingfunctional](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/everythingfunctional/32/176_2.png) [@everythingfunctional](https://fortran-lang.discourse.group/u/everythingfunctional)\
**Post date:** [November 4, 2022, 6:11pm UTC](https://fortran-lang.discourse.group/t/what-is-a-pure-function/4654/23 "2022-11-04T18:11:06Z")

</div>

[rojff](https://gitlab.com/everythingfunctional/rojff). Nearly that entire library could be pure if not for the polymorphism. So if such a feature existed, it would be quite beneficial.

[erloff](https://gitlab.com/everythingfunctional/erloff) could also be entirely pure with such a procedure.

Any [heterogeneous container](https://gitlab.com/everythingfunctional/heterogeneous_list) can’t be used in pure contexts, but could if such a feature were added.

I could go on, but I think maybe you get the point.

---

_[View the full topic](https://fortran-lang.discourse.group/t/what-is-a-pure-function/4654)._
