2019:notes_on_teaching_elixir
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 2019:notes_on_teaching_elixir [2019/05/31 13:27] – [By arity] adolfont | 2019:notes_on_teaching_elixir [2020/11/19 11:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| ===== Calling functions ===== | ===== Calling functions ===== | ||
| + | |||
| + | Module, function and arguments. | ||
| ==== By arity ==== | ==== By arity ==== | ||
| Line 37: | Line 39: | ||
| < | < | ||
| + | Math.pi() | ||
| alias :math, as: Math | alias :math, as: Math | ||
| Math.pi() | Math.pi() | ||
| Line 44: | Line 47: | ||
| < | < | ||
| - | alias :math, as: Math | + | Kenel.abs(-34) |
| - | Math.pi() | + | Kernel.abs (-34) |
| + | Kernel.absolute(-34) | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | Kernel.abs(-34) | ||
| + | Kernel.abs -34 | ||
| + | Kernel.abs (-34) | ||
| + | |||
| + | Kernel.round(34.6) | ||
| + | Kernel.floor(34.6) | ||
| + | Kernel.ceil(34.9) | ||
| + | </ | ||
| + | |||
| + | === Binary functions === | ||
| + | |||
| + | < | ||
| + | Kernel.max(1, | ||
| + | Kernel.max(2, | ||
| + | Kernel.min(2, | ||
| + | Kernel.div(10, | ||
| + | Kernel.rem(10, | ||
| + | Kernel.div(10, | ||
| + | </ | ||
| + | |||
2019/notes_on_teaching_elixir.1559309253.txt.gz · Last modified: 2020/11/19 11:42 (external edit)
