What does /# mean in Phoenix?

This isn’t really a problem but rather a curiosity that could potentially be useful down the line. As I’ve looked through Phoenix documentation I’ve found a lot of /1, /2 etc, and also in server error messages. However, I’m not really sure what they mean, and don’t know what the correct terminology would be to use to search them within the docs.

What do they mean?

1 Like

Those specify the arity (number of arguments) of a function:

1 Like

It is the arity of the function.

You define a function by it’s name, but also by the number of arguments it takes.

1 Like

I just released I asked this before and totally forgot. Sorry. I’m gonna flag this question to be deleted.

1 Like