m1-internship/tests/test2.agda

14 lines
268 B
Agda
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module test2 where
open import Data.Nat using ()
open import Data.Vec using (Vec; _∷_)
open import Data.Fin using (Fin; zero; suc)
variable
A : Set
n :
lookup : Vec A n Fin n A
lookup (a as) zero = a
lookup (a as) (suc i) = lookup as i