diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-05 10:51:07 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-05 10:51:07 -0400 |
| commit | 53f5178f711c7795b0bffca0a0b835333c7c8df5 (patch) | |
| tree | 858f3799cdcb942d7ad7e2e140f12331bc21fa97 /docs | |
| parent | c9198cb4807931096f6fcc310e567c27923ecccf (diff) | |
Remove {} for empty sets
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/sets.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/sets.md b/docs/sets.md index 740a37f3..023547dd 100644 --- a/docs/sets.md +++ b/docs/sets.md @@ -12,16 +12,17 @@ b := {20, 30} ## Syntax -Sets are written using `{}` curly braces with comma-separated items: +Sets are written using `{...}` curly braces with comma-separated items: ```tomo nums := {10, 20, 30} ``` -Empty sets must specify the item type explicitly: +Empty sets must specify the set type explicitly and use `{/}` for an empty set +(because `{}` is an empty table). ```tomo -empty : {Int} = {} +empty : {Int} = {/} ``` For type annotations, a set that holds items with type `T` is written as `{T}`. |
