~repos /plum
git clone https://pyrossh.dev/repos/plum.git
A statically typed, imperative programming language inspired by rust, python
website/src/content/docs/operators/logical.md
---title: Operatorsdescription: These are basic types---
### Arithmetic### Relational### Logical### Bitwise### Assignment### Precedence
**assignment operator**
```go x, y := 5, 3 z := x + y // 8```
**not operator**
```rb!a!true```
**ternary operator**
```rbx ? a : b```
**safe navigation operator**
```rba?.b?.c?.d```
**elvis operator**
```rbx ?: y```
**cascade operator (remove??)**
```dartpaint := Paint() ..color = Colors.black ..strokeCap = StrokeCap.round ..strokeWidth = 5.0
v := list.of(1, 2, 3) ..add(4, 5) ..get(0)```
**range operator**
```rstrait Rangeble where fn range[V](yield: fn(V): bool): bool
trait RangebleKV where fn rangeKV[K, V](yield: fn(K, V): bool): bool
record Tree[E]( value: E left: Option[Tree] = None right: Option[Tree] = None)
fn (Tree->Rangeble) range(yld: fn(E): bool): bool = t.left?.range(yld) && yld(t.val) && t.right?.range(yld)
let tree = Tree( value: 10, left: Tree(20, Tree(30), Tree(39)), right: Tree(40),)for t := range tree printLn(v)```