HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Haskell Quiz/DayRange

< Haskell Quiz

Categories: Haskell Quiz

DayRange (#92)

If you've ever created a web application that deals with scheduling recurring events, you may have found yourself creating a method to convert a list of days into a more human-readable string.

For example, suppose a musician plays at a certain venue on Monday, Tuesday, Wednesday, and Saturday. You could pass a list of associated day numbers to your object or method, which might return "Mon-Wed, Sat".

The purpose of this quiz is to find the best "Haskell way" to generate this sentence-like string.

1 The Problem

2 Solutions

Retrieved from "http://www.haskell.org/haskellwiki/Haskell_Quiz/DayRange"

This page has been accessed 631 times. This page was last modified 10:32, 13 January 2007. Recent content is available under a simple permissive license.