Whilst making some modifications to toepoke last night I needed to do some work around the membership. Things like Is this user a member of this squad, Have they been verified, etc.
I started off with a statement with too many logical ORs kicking around and thought there must be a better way of expressing what I wanted to do.
My hunch was it wouldn’t work as traditionally you couldn’t add additional behaviour to an Enum. However it turns out it’s quite straightforward: