# Is it possible to dispatch on the arity of a function?

**URL:** <https://discourse.julialang.org/t/is-it-possible-to-dispatch-on-the-arity-of-a-function/29266>\
**Category:** New to Julia\
**Created:** [September 28, 2019, 10:29am UTC](https://discourse.julialang.org/t/is-it-possible-to-dispatch-on-the-arity-of-a-function/29266 "2019-09-28T10:29:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [September 28, 2019, 5:16pm UTC](https://discourse.julialang.org/t/is-it-possible-to-dispatch-on-the-arity-of-a-function/29266/4 "2019-09-28T17:16:16Z")

</div>

> [@pablosanjose](#):
>
> TL;DR: `isapplicable` is probably your best approach for this

That is incorrect, according to the thread it is `applicable` instead of `isapplicable`:

> [@Finding the number of arguments of an anonymous function](https://discourse.julialang.org/t/finding-the-number-of-arguments-of-an-anonymous-function/24394/29):
>
> FWIW, `applicable` seems to fare fairly well and should be safe:

---

_[View the full topic](https://discourse.julialang.org/t/is-it-possible-to-dispatch-on-the-arity-of-a-function/29266)._
