valentines-day

This commit is contained in:
Alexander Heldt
2025-11-02 16:01:30 +01:00
parent 20df184279
commit 64d2de2364
10 changed files with 374 additions and 0 deletions

14
valentines-day/HINTS.md Normal file
View File

@@ -0,0 +1,14 @@
# Hints
## 1. Define the approval
- Custom types can be defined using the `pub type Name { Variant1 }` syntax.
## 4. Define the activity
- Custom types containing data can be defined using the `pub type Name { Variant1(SomeType) }` syntax.
## 5. Rate the activity
- Custom type variants can be pattern matched on using case expressions.
- If you want to add an additional condition to a pattern, you can add a guard to the pattern using the `if` keyword.