25 January 2014

Sierpinski Triangle - Haskell

Hello folks!
I'll skip the 'It has been a while...' part and jump right into the thing.

So there is this fractal, Sierpinski triangle:
Like any other fractal, you can see the self-similar pattern appearing on every scale. It looks the same from far and near.

Today, I wrote a Haskell program to print the Sierpinski triangle:

Ofcourse, Haskell means it can be more concise. But hey, I am a newbie! ;)

I have been fascinated by the Functional programming paradigm ever since Pramode Sir initiated me into it.
And, Haskell = Mindblowing!

Here are some related links:
Learn you a Haskell for Great Good!

No comments: