Files
iterables-js/README.md
2025-07-23 10:36:50 +03:00

52 lines
1.5 KiB
Markdown

# iterables-js
A data structures library based on iterators, inspired by libstdc++
## Operators
| Operator | Naming |
| ----------- | ------------- |
| `+=` | add |
| `-=` | sub |
| `++obj` | inc |
| `--obj` | dec |
| `*=` | mul |
| `/=` | div |
| `%=` | mod |
| `==` | eq |
| `!=` | neq |
| `<` | a.cmp(b) < 0 |
| `>` | a.cmp(b) > 0 |
| `<=` | a.cmp(b) <= 0 |
| `>=` | a.cmp(b) >= 0 |
| `&&` | and |
| `=` const & | copy |
| `=` && | move |
| `*obj` | deref |
| `&obj` | ref |
| `obj[]` | get |
| `obj[]=smth`| set |
| `\|\|` | or |
| `!` | not |
| `&` | band |
| `\|` | bor |
| `^` | bxor |
| `~` | bnot |
| `<<` | shl |
| `>>` | shr |
| `()` | call |
| `,` | comma |
| `obj++` | `X` |
| `obj--` | `X` |
| `->` | `X` |
| `+` | `X` |
| `-` | `X` |
| `*` | `X` |
| `/` | `X` |
| `%` | `X` |
| `&=` | `X` |
| `\|=` | `X` |
| `^=` | `X` |
| `<<=` | `X` |
| `>>=` | `X` |