Strange Loops

No Matter Where You Go, There You Are

Halfway Through the Gentle Introduction

| Comments

I’ve made pretty good progress through a Gentle Introduction to Haskell. Working through the literate Haskell code supplied with the introduction is really informative. Infinite data structures take some understanding to wrap your brain around.

I’m still having issues with the fibonacci example implemented with list comprehensions, lazy patterns and infinite lists. E.g.


fib@(1:tfib)    
= 1 : 1 : [ a+b | (a,b) <- zip fib tfib ]


Recently I was pointed to two good supplements for Haskell. HaskellDemo and A Concise Introduction to Gofer/Haskell. Looking at these two articles, Haskell doesn’t seem like such an intimidating language after all.