Created
June 13, 2017 09:54
-
-
Save deque-blog/03709219607cb162dbe7499428b75ee3 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
infixr 5 +. | |
namespace Scalar | |
(+.) : Int -> Int -> Int | |
x +. y = x + y | |
namespace Vector | |
(+.) : List Int -> List Int -> List Int | |
xs +. ys = zipWith (+) xs ys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment