# Can length function be used for function argument pattern matching

**URL:** <https://forum.elixirforum.com/t/can-length-function-be-used-for-function-argument-pattern-matching/32419>\
**Category:** Questions\
**Tags:** pattern-matching, list, length\
**Created:** [June 17, 2020, 4:43pm UTC](https://forum.elixirforum.com/t/can-length-function-be-used-for-function-argument-pattern-matching/32419 "2020-06-17T16:43:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Schultzer](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/schultzer/32/4339_2.png) [@Schultzer](https://forum.elixirforum.com/u/Schultzer)\
**Post date:** [June 17, 2020, 5:37pm UTC](https://forum.elixirforum.com/t/can-length-function-be-used-for-function-argument-pattern-matching/32419/4 "2020-06-17T17:37:59Z")

</div>

You could write a macro and use [Kernel.SpecialForms — Elixir v1.20.2](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#unquote_splicing/1)

---

_[View the full topic](https://forum.elixirforum.com/t/can-length-function-be-used-for-function-argument-pattern-matching/32419)._
