aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunky Jimpjorps <thechairman@thechairman.info>2022-12-02 11:47:50 -0500
committerHunky Jimpjorps <thechairman@thechairman.info>2022-12-02 11:47:50 -0500
commit36e7a9cc09221990f8ee69d0ad0885ff07ebaeef (patch)
tree0bea507e6ba7732ee42f2d5a7293bbe18dda28c4
parentc3d257ba97ffbee320c8fbdc9a90bf2a5e859d61 (diff)
downloadgleam_aoc-36e7a9cc09221990f8ee69d0ad0885ff07ebaeef.tar.gz
gleam_aoc-36e7a9cc09221990f8ee69d0ad0885ff07ebaeef.zip
day 2 markdown fixes
-rw-r--r--2022/day-02/day-02.ipynb8
1 files changed, 3 insertions, 5 deletions
diff --git a/2022/day-02/day-02.ipynb b/2022/day-02/day-02.ipynb
index 715f14b..d9dcd72 100644
--- a/2022/day-02/day-02.ipynb
+++ b/2022/day-02/day-02.ipynb
@@ -74,11 +74,9 @@
"(define losing-rounds {'rock 'scissors 'paper 'rock 'scissors 'paper})\n",
"\n",
"(define (outcome them me)\n",
- " (match (cons them me)\n",
- " [(cons x x) 'draw]\n",
- " [(cons x y)\n",
- " #:when (eq? y (winning-rounds x))\n",
- " 'win]\n",
+ " (match* (them me)\n",
+ " [(x x) 'draw]\n",
+ " [(x y) #:when (eq? y (winning-rounds x)) 'win]\n",
" [_ 'lose]))"
]
},