# How to export functions from an array in a module?

**URL:** <https://discourse.julialang.org/t/how-to-export-functions-from-an-array-in-a-module/25234>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 13, 2019, 9:30am UTC](https://discourse.julialang.org/t/how-to-export-functions-from-an-array-in-a-module/25234 "2019-06-13T09:30:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [June 13, 2019, 10:52am UTC](https://discourse.julialang.org/t/how-to-export-functions-from-an-array-in-a-module/25234/2 "2019-06-13T10:52:11Z")

</div>

Have you considered this snippet:

> [@Exportall?](https://discourse.julialang.org/t/exportall/4970/14):
>
> The following simple snippet seems to work: module Foo foo(x) = x+1 bar(x) = x-1 # exportall: for n in names(current\_module(), true) if Base.isidentifier(n) && n ∉ (Symbol(current\_module()), :eval) @eval export $n end end end

---

_[View the full topic](https://discourse.julialang.org/t/how-to-export-functions-from-an-array-in-a-module/25234)._
