[Haskell-cafe] Re: Strange space leak

apfelmus apfelmus at quantentunnel.de
Wed Jul 16 08:33:16 EDT 2008

Grzegorz Chrupala wrote:
>>    split "<DOC>" . words . map toLower = (:[]) . words . map toLower
>> Since you converted everything to lowercase, the string "<DOC>" will 
>> never appear in the text, resulting in a single huge document. 
> Oops, that should have been obvious, sorry for the dumb question.
> Thanks,

No problem, it was not obvious to me and I had fun trying to figure it out :)


More information about the Haskell-Cafe mailing list