[Haskell-beginners] can this be made shorter?
Emmanuel Touzery
etouzery at gmail.com
Wed May 29 22:14:44 CEST 2013
ah, i wrote "and" but i meant "all" in my emails ;-)
but yes i thought about all in combination with the null, to go over "."
and "/".
yes this is clearer, just too bad about the flip.
On Wed, May 29, 2013 at 10:00 PM, Tilmann <t_gass at gmx.de> wrote:
> you might want to use 'all' as well:
>
> Prelude> (all $ flip elem "./") "...."
> True
>
>
> Am 29.05.2013 21:50, schrieb Emmanuel Touzery:
>
> null . dropWhile (`elem` "./")
>>
>
>
> ______________________________**_________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/**mailman/listinfo/beginners<http://www.haskell.org/mailman/listinfo/beginners>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130529/9943ead8/attachment.htm>
More information about the Beginners
mailing list