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 4
Polishing the Word Game
Content Locked
Section 3
Searching the Grid Recursively
In the previous video, we saw that the search functions couldn't be refactored in a simplistic, mechanical way. We now have to think about how to change a simple string search using 'isInfixOf' into something that searches on characters, but returns a complex Cell type. - Simplify the problem into a search on a prefix and break that down recursively - Once that's done, find the word anywhere in the line, for example, as an "infix" search, again recursively - Update test cases to make sure that our code is still doing the right thing