Skip to content

Instantly share code, notes, and snippets.

@LeifW
Created March 12, 2020 12:52
Show Gist options
  • Save LeifW/579c4eaf4e365b27b3a647890525710c to your computer and use it in GitHub Desktop.
Save LeifW/579c4eaf4e365b27b3a647890525710c to your computer and use it in GitHub Desktop.
import Data.Vect
types : Vect 3 Type
types = [Int,Bool,Int]
nthType : {n: Fin 3} -> Type
nthType = index n types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment