Add operator form for unsafe indexing
This commit is contained in:
parent
1ebf0dcbe9
commit
7916e10aef
3 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue