summaryrefslogtreecommitdiff
path: root/ghc/CONTRIB/pphs/docs/Haskell_math.tex
blob: 2e67e31e057bc2f09656b8778a84b462035204b6 (plain)
1
2
3
4
5
\begin{verbatim}
-- list concatenation (right-associative)
(++)                    :: [a] -> [a] -> [a]
xs ++ ys                =  foldr (:) ys xs
\end{verbatim}