Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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