[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-beginners
Subject:    [Haskell-beginners] Re: Hint on exercise from Real World Haskell
From:       prad <prad () towardsfreedom ! com>
Date:       2010-06-29 4:31:19
Message-ID: 20100628213119.0a7a21ba () gom
[Download RAW message or body]

On Mon, 28 Jun 2010 22:45:23 -0400
"Chris Saunders" <evas@mountaincable.net> wrote:

> print the number of characters in a 
> file ... I'm hoping to get a hint for this one.
>
1. read in the file - which will be (eventually) a bunch of chars
2. count the chars by adding 1 to the count of the chars less one char
(can be done with pattern matching x:xs and then using just xs)


-- 
In friendship,
prad

                                      ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's


_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic