rust/src/doc/trpl/glossary.md

18 lines
476 B
Markdown
Raw Normal View History

2015-02-15 12:37:49 -06:00
% Glossary
In this section we briefly explain terms that you may not be familiar with.
This book avoids, as much as possible, overcomplicated terms. Nevertheless, the following were deemed important enough that omitting them would be a disservice to the reader.
### 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.