Skip to Content
Learn Haskell by Example
book

Learn Haskell by Example

by Philipp Hagenlocher
December 2024
Beginner content levelBeginner
456 pages
13h 37m
English
Manning Publications
Content preview from Learn Haskell by Example

6 Solving the ladder game

This chapter covers

  • Writing complex algorithms with multiple helper functions
  • The intricacies of type variables and their scoping
  • Profiling the performance of our application and adding external dependencies to the project

In the last chapter, we covered the ladder game and discussed how to implement a data structure that can represent graph structures. Furthermore, we can construct a graph that represents all possible outcomes of our game.

Now, we want to turn our attention to solving the problem of computing a solution within this graph. We can achieve this goal using a search algorithm that will guarantee we always find the shortest possible solution to our game.

This chapter begins by discussing how ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with Haskell

Get Programming with Haskell

Will Kurt
Haskell in Depth

Haskell in Depth

Vitaly Bragilevsky

Publisher Resources

ISBN: 9781633438934Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link