Created
February 22, 2018 01:33
-
-
Save johannes-riecken/873740cb8000501ee3d9b76d9eb26dc1 to your computer and use it in GitHub Desktop.
vectTake implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vectTake : (n : Fin (m)) -> Vect m a -> LTE (cast n) m -> Vect (cast n) a | |
vectTake FZ (y :: xs) LTEZero = [] | |
vectTake (FS y) (z :: xs) (LTESucc x) = z :: vectTake y xs x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment