Can length function be used for function argument pattern matching

You could write a macro and use Kernel.SpecialForms — Elixir v1.20.2