[Haskell-cafe] isSpace

2007-12-04 Thread Ryan Bloor
hi I am having trouble with a function that is supposed to eliminate spaces from the start of a String and return the resulting string. I reckon a dropWhile could be used but the isSpace bit is causing me problems... words :: String - String words a = case dropWhile isSpace a of

Re: [Haskell-cafe] isSpace

2007-12-04 Thread Brent Yorgey
On Dec 4, 2007 12:13 PM, Ryan Bloor [EMAIL PROTECTED] wrote: hi I am having trouble with a function that is supposed to eliminate spaces from the start of a String and return the resulting string. I reckon a dropWhile could be used but the isSpace bit is causing me problems... You need to

[Haskell-cafe] isSpace

2007-12-04 Thread Ryan Bloor
HI I will try and explain it better. I am meaning to write a function that takes a string, apple and eliminates the spaces at the start ONLY. called removeSpace :: String - String I decided to use the function 'dropWhile' and another one 'isSpace' in the 'removeSpace'

Re: [Haskell-cafe] isSpace

2007-12-04 Thread Brent Yorgey
On Dec 4, 2007 1:29 PM, Ryan Bloor [EMAIL PROTECTED] wrote: HI I will try and explain it better. I am meaning to write a function that takes a string, apple and eliminates the spaces at the start ONLY. called removeSpace :: String - String I decided to use the function

Re: [Haskell-cafe] isSpace

2007-12-04 Thread Thomas Hartman
look at the examples of dropWhile usage you got from the first result when you get when you google on dropWhile. t. 2007/12/4, Ryan Bloor [EMAIL PROTECTED]: HI I will try and explain it better. I am meaning to write a function that takes a string, apple and eliminates the spaces at

Re: [Haskell-cafe] isSpace

2007-12-04 Thread Stefan O'Rear
On Tue, Dec 04, 2007 at 05:13:19PM +, Ryan Bloor wrote: hi I am having trouble with a function that is supposed to eliminate spaces from the start of a String and return the resulting string. I reckon a dropWhile could be used but the isSpace bit is causing me problems... words ::