Skip to content

Commit 1e9a162

Browse files
committed
Remove table.freeze & table.isfrozen
1 parent 8eb294c commit 1e9a162

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

docs/Runtime Environment/Table.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,6 @@ t:clear()
3232
print(t:size()) --> 0
3333
```
3434
---
35-
### `table.freeze`
36-
Freezes a table to prevent modification.
37-
#### Parameters
38-
1. The table to freeze
39-
#### Returns
40-
The input table.
41-
```pluto
42-
local t = table.freeze({...})
43-
-- `table.freeze(t)` on another line will work fine too.
44-
t.key = "value" -- Fails.
45-
```
46-
---
47-
### `table.isfrozen`
48-
Checks if this table is frozen.
49-
#### Parameters
50-
1. The table to check.
51-
```pluto
52-
local t = {}
53-
table.freeze(t)
54-
assert(table.isfrozen(t) == true)
55-
```
56-
---
5735
### `table.contains`
5836
Checks if this table contains an element.
5937
#### Parameters

0 commit comments

Comments
 (0)