This commit is contained in:
Rico Sta. Cruz 2017-08-30 01:34:51 +08:00
parent d21f0fae07
commit 9641d4f2fb
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 20 additions and 19 deletions

View File

@ -145,25 +145,26 @@ end
### Primitives
| Sample | Type |
| --- | --- |
| `nil` | Nil/null |
| `true` _/_ `false` | Boolean |
| --- | --- |
| `23` | Integer |
| `3.14` | Float |
| --- | --- |
| `'hello'` | Char list |
| `<<2, 3>>` | Binary |
| `"hello"` | Binary string |
| `:hello` | Atom |
| --- | --- |
| `[a, b]` | List |
| `{a, b}` | Tuple |
| --- | --- |
| `%{a: "hello"}` | Map |
| `%MyStruct{a: "hello"}` | Struct |
| `fn -> ... end` | Function |
| Sample | Type |
| --- | --- |
| `nil` | Nil/null |
| `true` _/_ `false` | Boolean |
| --- | --- |
| `?a` | Integer (ASCII) |
| `23` | Integer |
| `3.14` | Float |
| --- | --- |
| `'hello'` | Char list |
| `<<2, 3>>` | Binary |
| `"hello"` | Binary string |
| `:hello` | Atom |
| --- | --- |
| `[a, b]` | List |
| `{a, b}` | Tuple |
| --- | --- |
| `%{a: "hello"}` | Map |
| `%MyStruct{a: "hello"}` | Struct |
| `fn -> ... end` | Function |
### Type checks