Update
This commit is contained in:
parent
d21f0fae07
commit
9641d4f2fb
39
elixir.md
39
elixir.md
|
@ -145,25 +145,26 @@ end
|
||||||
|
|
||||||
### Primitives
|
### Primitives
|
||||||
|
|
||||||
| Sample | Type |
|
| Sample | Type |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `nil` | Nil/null |
|
| `nil` | Nil/null |
|
||||||
| `true` _/_ `false` | Boolean |
|
| `true` _/_ `false` | Boolean |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `23` | Integer |
|
| `?a` | Integer (ASCII) |
|
||||||
| `3.14` | Float |
|
| `23` | Integer |
|
||||||
| --- | --- |
|
| `3.14` | Float |
|
||||||
| `'hello'` | Char list |
|
| --- | --- |
|
||||||
| `<<2, 3>>` | Binary |
|
| `'hello'` | Char list |
|
||||||
| `"hello"` | Binary string |
|
| `<<2, 3>>` | Binary |
|
||||||
| `:hello` | Atom |
|
| `"hello"` | Binary string |
|
||||||
| --- | --- |
|
| `:hello` | Atom |
|
||||||
| `[a, b]` | List |
|
| --- | --- |
|
||||||
| `{a, b}` | Tuple |
|
| `[a, b]` | List |
|
||||||
| --- | --- |
|
| `{a, b}` | Tuple |
|
||||||
| `%{a: "hello"}` | Map |
|
| --- | --- |
|
||||||
| `%MyStruct{a: "hello"}` | Struct |
|
| `%{a: "hello"}` | Map |
|
||||||
| `fn -> ... end` | Function |
|
| `%MyStruct{a: "hello"}` | Struct |
|
||||||
|
| `fn -> ... end` | Function |
|
||||||
|
|
||||||
### Type checks
|
### Type checks
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue