dwyl / learn-elixir

:droplet: Learn the Elixir programming language to build functional, fast, scalable and maintainable web applications!
1.62k stars 109 forks source link

Clarify `function/<number of arguments>` notation in readme #132

Closed iteles closed 5 years ago

iteles commented 5 years ago

One of the first questions I had when I started reading books on elixir was around function/<number of arguments> notation.

Most places just launch straight into it, including this readme in the Truthiness section: image

I hadn't read it before and more recently I have heard other people raise the question on what it means.

It's super basic, but a one line clarification on this notation can help not break the flow for beginners.

nelsonic commented 5 years ago

https://culttt.com/2016/05/02/understanding-function-arity-elixir

fusillicode commented 5 years ago

Hi @iteles 😄

I took the liberty to add a few lines and a reference to the article suggested by @nelsonic.

Here's the PR.

If you want I can expand the few lines even more by adding a specific section under Functions and Modules.

Let me know 😄