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