# Parameter pattern matching

**URL:** <https://forum.elixirforum.com/t/parameter-pattern-matching/14173>\
**Category:** Questions\
**Tags:** pattern-matching, function-clause\
**Created:** [May 12, 2018, 1:25pm UTC](https://forum.elixirforum.com/t/parameter-pattern-matching/14173 "2018-05-12T13:25:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![laiboonh](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/laiboonh/32/8524_2.png) [@laiboonh](https://forum.elixirforum.com/u/laiboonh)\
**Post date:** [May 12, 2018, 1:51pm UTC](https://forum.elixirforum.com/t/parameter-pattern-matching/14173/5 "2018-05-12T13:51:11Z")

</div>

So am i right to say that for parameter pattern matching, the parameters are taken in as a tuple and tuple pattern matching happens

```elixir
def equal(a,a), do: true

```

`equal(1,1)`  
Patter n matching that happens: `{a,a} = {1,1}`  
Hence `{a,b} = {1,2}` matching fails

---

_[View the full topic](https://forum.elixirforum.com/t/parameter-pattern-matching/14173)._
