Proposal: improve the Data.Tree API
João Cristóvão
jmacristovao at gmail.com
Mon Feb 24 11:11:00 UTC 2014
Yes, indeed, thats a totally different discussion I do not want to enter:
http://www.reddit.com/r/haskell/comments/xo05l/why_isnt_length_part_of_foldable/
So, I'll 'erase' the length function from the proposal, since:
* it's definition is not unanymous
* my definition (number of elements) is simple enough to be implemented in
several ways
Cheers
João
2014-02-24 10:48 GMT+00:00 Henning Thielemann <
schlepptop at henning-thielemann.de>:
> Am 24.02.2014 11:39, schrieb João Cristóvão:
>
>
> -- | Length of the tree
>> length :: Tree a -> Int
>>
>
> This one could be implemented more generally (maybe additionally) in
> Data.Foldable. But this would be another proposal.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140224/f86b2594/attachment.html>
More information about the Libraries
mailing list