Skip to content

Commit

Permalink
Document ID-based equality operators
Browse files Browse the repository at this point in the history
  • Loading branch information
HactarCE committed Sep 20, 2024
1 parent 5ff3e6a commit 3500c9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/hsc/lua/puzzle-construction/axes.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Axes have no methods.

### Operations

- `axis == axis`
- `axis ~= axis`
- `type(axis)` returns `'axis'`
- `tostring(axis)`

Expand Down
2 changes: 2 additions & 0 deletions docs/hsc/lua/puzzle-construction/colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ Colors have no methods.

### Operations

- `color == color`
- `color ~= color`
- `type(color)` returns `'color'`
- `tostring(color)`

Expand Down
2 changes: 2 additions & 0 deletions docs/hsc/lua/puzzle-construction/twists.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ Axes have no methods.

### Operations

- `twist == twist`
- `twist ~= twist`
- `twist * twist` composes two twists, if there is a twist corresponding to their composition
- `twist ^ number` returns the twist composed with itself some number of times (which may be negative), if there is such a twist
- `type(twist)` returns `'twist'`
Expand Down

0 comments on commit 3500c9a

Please sign in to comment.