Update
This commit is contained in:
parent
ea4745d026
commit
d21f0fae07
11
elixir.md
11
elixir.md
|
@ -145,14 +145,22 @@ end
|
||||||
|
|
||||||
### Primitives
|
### Primitives
|
||||||
|
|
||||||
|
| Sample | Type |
|
||||||
|
| --- | --- |
|
||||||
| `nil` | Nil/null |
|
| `nil` | Nil/null |
|
||||||
| `true` _/_ `false` | Boolean |
|
| `true` _/_ `false` | Boolean |
|
||||||
|
| --- | --- |
|
||||||
|
| `23` | Integer |
|
||||||
|
| `3.14` | Float |
|
||||||
|
| --- | --- |
|
||||||
| `'hello'` | Char list |
|
| `'hello'` | Char list |
|
||||||
| `<<2, 3>>` | Binary |
|
| `<<2, 3>>` | Binary |
|
||||||
| `"hello"` | Binary string |
|
| `"hello"` | Binary string |
|
||||||
| `:hello` | Atom |
|
| `:hello` | Atom |
|
||||||
|
| --- | --- |
|
||||||
| `[a, b]` | List |
|
| `[a, b]` | List |
|
||||||
| `{a, b}` | Tuple |
|
| `{a, b}` | Tuple |
|
||||||
|
| --- | --- |
|
||||||
| `%{a: "hello"}` | Map |
|
| `%{a: "hello"}` | Map |
|
||||||
| `%MyStruct{a: "hello"}` | Struct |
|
| `%MyStruct{a: "hello"}` | Struct |
|
||||||
| `fn -> ... end` | Function |
|
| `fn -> ... end` | Function |
|
||||||
|
@ -194,6 +202,9 @@ left <> right # concat string/binary
|
||||||
left =~ right # regexp
|
left =~ right # regexp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Modules
|
||||||
|
-------
|
||||||
|
|
||||||
### Importing
|
### Importing
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
|
|
Loading…
Reference in New Issue