Skip to content

Instantly share code, notes, and snippets.

@martinsson
Created July 3, 2018 22:18
Show Gist options
  • Save martinsson/db2be0d5803cfecd2e2e99e400c9cff4 to your computer and use it in GitHub Desktop.
Save martinsson/db2be0d5803cfecd2e2e99e400c9cff4 to your computer and use it in GitHub Desktop.
FizzBuzz as an alias for a tuple
||| the type Fizzbuzz is just an alias for the tuple of FizzT and BuzzT
Fizzbuzz: Nat -> Type
Fizzbuzz n = (FizzT n, BuzzT n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment