secure-treasure-chest
This commit is contained in:
15
secure-treasure-chest/HINTS.md
Normal file
15
secure-treasure-chest/HINTS.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user