No CrossRef data available.
Article contents
Solving the snake cube puzzle in Haskell
Published online by Cambridge University Press: 25 March 2013
Abstract
We describe a concise and elegant functional program, written in Haskell, that computes solutions for a classic puzzle known as the “snake cube.” The program reflects some of the fundamental characteristics of the functional style, identifying key abstractions, and defining a small collection of operators for manipulating and working with the associated values. Well-suited for an introductory course on functional programming, this example highlights the use of visualization tools to explain and demonstrate the choices of data structures and algorithms that are used in the development.
- Type
- Functional Pearls
- Information
- Copyright
- Copyright © Cambridge University Press 2013
Discussions
No Discussions have been published for this article.