Skip to content

Commit

Permalink
Add function "vZip" to SAWCore prelude and set up for evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed May 28, 2014
1 parent ecfa781 commit 1f75778
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prelude/Prelude.sawcore
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ rotateL :: (n :: Nat) -> (a :: sort 0) -> Vec n a -> Nat -> Vec n a;
-- Rotate array to the right.
rotateR :: (n :: Nat) -> (a :: sort 0) -> Vec n a -> Nat -> Vec n a;

-- Zip together two lists (truncating the longer of the two).
vZip :: (a b :: sort 0) -> (m n :: Nat) -> Vec m a -> Vec n b -> Vec (minNat m n) #(a, b);

--------------------------------------------------------------------------------
-- Bitvectors

Expand Down

0 comments on commit 1f75778

Please sign in to comment.