Skip to content

Commit

Permalink
Update README - closure in function
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Oct 22, 2023
1 parent 22b0141 commit 471040a
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,30 +158,6 @@ $ 3body
面壁计划()
```

### Closure

##### Example

```rust
给 末日战役 以 法则() {
给 响 以 0;
return 法则(x) {
if (响 + x >= 2000) {
= 2000;
return 响;
}
=+ x;
}
}

给 水滴两千响 以 末日战役();

水滴两千响(1);
水滴两千响(1);
水滴两千响(1);
```

## Built-in Functions

### Print
Expand Down Expand Up @@ -250,6 +226,7 @@ $ 3body
|---|---|---|
|let||"give"|
|=||"as"|
|const|思想钢印|"thoughtcontrou"|
|+|前进|"go forward"|
|-|降维|"dimension reduction"|
|true|这是计划的一部分|"It's part of the plan."|
Expand All @@ -262,7 +239,6 @@ $ 3body
|sleep|冬眠|"hibernation"|
|clear|二向箔清理|"two-way foil cleaning"|
|exit|毁灭|"destroy"|
|const|思想钢印|"thoughtcontrou"|


## Development
Expand Down

0 comments on commit 471040a

Please sign in to comment.