15 lines
401 B
Markdown
15 lines
401 B
Markdown
# Hints
|
|
|
|
## 1. Define the `TreasureChest` opaque type.
|
|
|
|
- Opaque types are defined using the `opaque` keyword.
|
|
|
|
## 2. Define the `create` function.
|
|
|
|
- The [`string.length` function][length] can be used to get the length of a string.
|
|
|
|
## 3. Define `open` function.
|
|
|
|
- The `==` operator can be used to compare two strings for equality.
|
|
|
|
[length]: https://hexdocs.pm/gleam_stdlib/gleam/string.html#length |