Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created June 13, 2017 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/03709219607cb162dbe7499428b75ee3 to your computer and use it in GitHub Desktop.
Save deque-blog/03709219607cb162dbe7499428b75ee3 to your computer and use it in GitHub Desktop.
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