1
0
Fork 0

move agda files into subdir

This commit is contained in:
Sean Sube 2022-09-30 20:24:38 -05:00
parent 94f8f83da4
commit a9004d0a88
8 changed files with 5 additions and 6 deletions

8
.gitignore vendored
View File

@ -1,5 +1,5 @@
MAlonzo/
out/
*.agdai
agda/*.agdai
agda/Calc
agda/MAlonzo/
Calc
out/

View File

@ -50,8 +50,7 @@ filterNothing (just x ∷ xs) = x ∷ filterNothing xs
-- take the item at the given index
takeIndex : {A : Set} → A → List A → Nat → A
takeIndex d [] 0 = d
takeIndex d [] (suc x) = d
takeIndex d [] _ = d
takeIndex d (x ∷ xs) 0 = x
takeIndex d (x ∷ xs) (suc n) = takeIndex d xs n