14 lines
254 B
Text
14 lines
254 B
Text
|
```doc
|
||
|
# LogicalNot
|
||
|
|
||
|
Values which wish to implement the `!` unary operator must implement this protocol.
|
||
|
```
|
||
|
protocol LogicalNot, as: do
|
||
|
```doc
|
||
|
Return the logical inverse of the value.
|
||
|
|
||
|
Must be implemented.
|
||
|
```
|
||
|
def not(self: Self): Boolean
|
||
|
end
|