# Type instability when using map with closures

**URL:** <https://discourse.julialang.org/t/type-instability-when-using-map-with-closures/101510>\
**Category:** General Usage\
**Tags:** type-stability, closure, map\
**Created:** [July 12, 2023, 7:39am UTC](https://discourse.julialang.org/t/type-instability-when-using-map-with-closures/101510 "2023-07-12T07:39:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [July 12, 2023, 7:49am UTC](https://discourse.julialang.org/t/type-instability-when-using-map-with-closures/101510/3 "2023-07-12T07:49:58Z")

</div>

You can also read [The Great Debate](https://discourse.julialang.org/t/rfc-some-ideas-to-tackle-15276-performance-of-captured-variables-in-closures/95260) if you want to get into the weeds!

---

_[View the full topic](https://discourse.julialang.org/t/type-instability-when-using-map-with-closures/101510)._
