Last active
June 19, 2018 12:01
-
-
Save cppxor2arr/9d9cb3228a6104f757aed30aa079b7ec to your computer and use it in GitHub Desktop.
sequence difference
This file contains hidden or 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
f :: Num a => [a] -> [a] | |
f [] = [] | |
f [x] = [] | |
f [x1,x2] = [x2-x1] | |
f (x1:x2:xs) = x2-x1:f (x2:xs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment