Haskell Basics

— 2 minute read

The fourth installment in my Haskell Basics series is now available on FP complete.

Haskell Basics #4 permalink

List comprehension, & FizzBuzz

FizzBuzz using tail-order recursion?

You betcha!

m = [ x | x <- [1..100], x `mod` 2 == 1]
main = print $ m

Your feedback is most welcome - Ask/Submit.

bguiz:

I have begun creating a series of tutorials, targeted at people new to Haskell, but not necessarily new to programming.

You can find them here:

Brendan Graetz’s School of Haskell content on FPComplete

Haskell Basics #1 permalink

Arithmetic, Boolean logic, & Functions

Haskell Basics #2 permalink

Chaining function calls, Baked in function, & Conditionals

Enjoy!

Any feedback is welcome - ping via Ask or Submit.

The third installment in my series is now available.

Haskell Basics #3 permalink

Tuples & Lists

In creating this lesson, I have learnt and incorporated some of the more advanced features of School-of-Haskell Markdown syntax. This one is more interactive, and consequently more engaging - I hope!