Closed jwfxpr closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/zackradisic/aussieplusplus/AyxNy7yxHT2pBMLU7iumZgYjHHti
✅ Preview: https://aussieplusplus-git-fork-jwfxpr-comeinspinner-zackradisic.vercel.app
Lmao this is great, tested and it works!
@all-contributors please add @jwfxpr for examples
@jwfxpr
I've put up a pull request to add @jwfxpr! :tada:
Inspired by the suggestion in #1 of
ComeInSpinner
as an alias forChuckSomeDice
, I've written a small example module that demonstrates pattern matching to figure out the result of a two-up coin toss, returningTails
,Heads
, orOdds
depending upon the values supplied.With apologies to @timshepherd-academy for mangling his suggestion! 😆
Please double-check and correct my syntax as necessary, this was written in the text editor and I haven't actually tried to compile it.