Created
April 11, 2014 22:05
-
-
Save sellout/10505377 to your computer and use it in GitHub Desktop.
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
scanl : (b -> a -> b) -> b -> Vect n a -> Vect (S n) b | |
scanl f q ls = q :: (case ls of | |
[] => [] | |
x::xs => scanl f (f q x) xs) | |
-- When elaborating left hand side of Main.case block in scanl: | |
-- When elaborating argument ls to Main.case block in scanl: | |
-- Can't unify | |
-- Vect 0 a | |
-- with | |
-- Vect n a | |
-- | |
-- Specifically: | |
-- Can't unify | |
-- 0 | |
-- with | |
-- n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
causes