Book Image

Learning Haskell Programming [Video]

By : Hakim Cassimally
Book Image

Learning Haskell Programming [Video]

By: Hakim Cassimally

Overview of this book

Haskell is a powerful and well-designed functional programming language designed to work with complex data. Its emphasis on "purity" makes it easier to create rock-solid applications which stay maintainable and error-free even as they grow in scale. This video would begin with the fundamentals and building blocks of Haskell programming language with special emphasis on functional programming. It will be covering how Haskell variables, syntax work alongwith Haskell datatypes and functions. You will learn how to solve programming problems while creating an application with hands-on experience. You will then move on to learning writing expressions and high-order functions. At the end of the video, you will be able to build a complete application with Haskell alongwith learning the important functionalities.
Table of Contents (4 chapters)
Chapter 3
Developing a Word Game
Content Locked
Section 4
Searching in All Directions
Though we can now search the grid horizontally, we want to do it in all directions. The easiest way to do this isn't to make our function more complicated, but rather to learn how to transform our grid! We'll use a toolkit including 'map', 'reverse', 'transpose', and our own recursive functions to do this. - Turn the grid 90 degrees with the 'transpose' function - Write a recursive function to scan the grid diagonally - Tidy up your code with the composition function