Zum Inhalt springen

Getting Started With Haskell

DistroTube (02.06.2020)

Some of the viewers have asked me to take a closer look at Haskell since I’ve done so much content regarding Xmonad, a tiling window manager written in Haskell. Well, I’m not a programmer by trade. And I certainly wouldn’t say I “know” Haskell. But I, a non-programmer, will attempt to cover some of the basics of Haskell in this video.

I messed up in explaining the order of operations for ‘foldl’. ‘foldr’ and ‘foldl’ are confusing as hell. But the following diagram should be right…
foldl (+) 0 [1,2,3,4] = ((((0 + 1) + 2) + 3) + 4)
foldr (+) 0 [1,2,3,4] = (1 + (2 + (3 + (4 + 0))))



Schreiben Sie einen Kommentar

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert