# \* (CompileError): undefined function

**URL:** <https://forum.elixirforum.com/t/compileerror-undefined-function/31558>\
**Category:** Questions\
**Tags:** compiler, errors\
**Created:** [May 15, 2020, 7:04pm UTC](https://forum.elixirforum.com/t/compileerror-undefined-function/31558 "2020-05-15T19:04:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Maxximiliann](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/maxximiliann/32/21346_2.png) [@Maxximiliann](https://forum.elixirforum.com/u/Maxximiliann)\
**Post date:** [May 15, 2020, 7:34pm UTC](https://forum.elixirforum.com/t/compileerror-undefined-function/31558/7 "2020-05-15T19:34:07Z")

</div>

> [@Nicd](#):
>
> have you tried for example `Benchmark.run(&Module.function/n, 20, 5)` (substituting module, function, and `n` for the respective module, function, and arity)? Then you could call the function with `function.(args)` (note the period).

Thanks for your suggestion! 🙂

Here’s what my attempt garnered:

```elixir
iex(6)> Benchmark.run(&Foo.feed/0, 20, 5) 
** (ArgumentError) you attempted to apply :acc on &Foo.feed/0. If you are using apply/3, make sure the module is an atom. If you are using the dot syntax, such as map.field or module.function, make sure the left side of the dot is an atom or a map

```

What did I miss?

---

_[View the full topic](https://forum.elixirforum.com/t/compileerror-undefined-function/31558)._
