
24 Feb
2014
24 Feb
'14
11:11 a.m.
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_folda... 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@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.