2015-02-15 12:37:49 -06:00
|
|
|
% Glossary
|
|
|
|
|
2015-02-15 13:41:44 -06:00
|
|
|
Not every Rustacean has a background in systems programming, nor in computer
|
|
|
|
science, so we've added explanations of terms that might be unfamiliar.
|
2015-02-15 12:37:49 -06:00
|
|
|
|
|
|
|
### Arity
|
|
|
|
|
|
|
|
Arity refers to the number of arguments a function or operation takes.
|
|
|
|
|
|
|
|
```rust
|
|
|
|
let x = (2, 3);
|
|
|
|
let y = (4, 6);
|
|
|
|
let z = (8, 2, 6);
|
|
|
|
```
|
|
|
|
|
|
|
|
In the example above `x` and `y` have arity 2. `z` has arity 3.
|