From 85ffc2927b0eb5daedcd5a1c455518e985aed526 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 15 Aug 2021 23:16:03 +0200 Subject: Add beginners note to haskell/composition --- haskell/composition.html | 1 + 1 file changed, 1 insertion(+) (limited to 'haskell/composition.html') diff --git a/haskell/composition.html b/haskell/composition.html index 27d8648..d1d4afc 100644 --- a/haskell/composition.html +++ b/haskell/composition.html @@ -1,4 +1,5 @@

Function composition in Haskell

+

(This post is intended for for Haskell beginners.)

In Haskell, the dot operator (.), written infix like f . g, is function composition. For example, suppose you have two functions:

addone :: Int -> Int
-- 
cgit v1.2.3-54-g00ecf