Arc Forumnew | comments | leaders | submitlogin
1 point by evanrmurphy 5069 days ago | link | parent

Didn't know that. Could you give a quick example?


2 points by akkartik 5069 days ago | link

In haskell you can designate any sequence of characters as an infix operator. Here's the definition of ++ from the prelude (http://www.haskell.org/onlinereport/standard-prelude.html):

  (++) :: [a] -> [a] -> [a]
  []     ++ ys = ys
  (x:xs) ++ ys = x : (xs ++ ys)
so [1, 2, 3] ++ [4, 5] = [1, 2, 3, 4, 5]

-----