Add operator form for unsafe indexing

This commit is contained in:
Kiana Sheibani 2022-08-04 15:13:00 -04:00
parent 1ebf0dcbe9
commit 7916e10aef
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
3 changed files with 5 additions and 2 deletions

View file

@ -121,6 +121,7 @@ export
--------------------------------------------------------------------------------
||| Construct a vector by pulling coordinates from another vector.
export
swizzle : Vect n (Fin m) -> Vector m a -> Vector n a
swizzle p v = rewrite sym (lengthCorrect p)