add bandwagoner test

Using custom types and records
This commit is contained in:
markgerrard
2026-03-17 21:38:17 +00:00
parent e9354a7920
commit f44556408b
10 changed files with 599 additions and 0 deletions

15
bandwagoner/HINTS.md Normal file
View File

@@ -0,0 +1,15 @@
# Hints
## 5. Replace the coach
- The record update syntax can be used to create a copy of a record but with one or more fields having a new value.
## 6. Check for same team
- Records have built-in structural equality, which means that records that have the same values are equal.
## 7. Check if you should root for a team
- The best way to execute logic based on the team's value is to use a case expression.
- If you want to add a condition to a pattern, you can use a guard.
- Pattern matching works for records within records.