Skip to content

Commit

Permalink
Translate 7th part of appendix-02-operators.md
Browse files Browse the repository at this point in the history
  • Loading branch information
E_Esmaeili committed Nov 29, 2022
1 parent 0b976f1 commit 4ed6437
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions FARSI/src/appendix-02-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,20 @@
| دیدگاه سندی چندخطی درونی | `/*!...*/` |
| دیدگاه سندی چندخطی بیرونی | `/**...*/` |

Table B-8 shows symbols that appear in the context of using tuples.

<span class="caption">Table B-8: Tuples</span>

| Symbol | Explanation |
|--------------------------|---------------------------------------------------------------------------------------------|
| `()` | Empty tuple (aka unit), both literal and type |
| `(expr)` | Parenthesized expression |
| `(expr,)` | Single-element tuple expression |
| `(type,)` | Single-element tuple type |
| `(expr, ...)` | Tuple expression |
| `(type, ...)` | Tuple type |
| `expr(expr, ...)` | Function call expression; also used to initialize tuple `struct`s and tuple `enum` variants |
| `expr.0`, `expr.1`, etc. | Tuple indexing |
جدول ب-۸ نمادهایی را نشان می‌دهد که زمینه‌ی استفاده از چندتایی (tuple) ها ظاهر می‌شوند.

<span class="caption">جدول ب-۸: چندتایی‌ها</span>

| شرح | نماد |
|--------------------------------------------------------------------------------------|--------------------------|
| چندتایی خالی (یا واحد)، هم نحو و هم نوع | `()` |
| عبارت داخل کمانه | `(expr)` |
| عبارت چندتایی تک‌ عنصری | `(expr,)` |
| نوع داده ی چندتایی تک عنصری | `(type,)` |
| عبارت چندتایی | `(expr, ...)` |
| نوع داده ی چندتایی | `(type, ...)` |
| بیان فراخوانی تابع. همچنین برای مقداردهی اولیه `struct` و تاپل `enum` استفاده می شود | `expr(expr, ...)` |
| نمایه‌سازی چندتایی | `expr.0`, `expr.1`, etc. |

Table B-9 shows the contexts in which curly braces are used.

Expand Down

0 comments on commit 4ed6437

Please sign in to comment.