[Haskell-cafe] Leaves of a Tree

Yitzchak Gale gale at sefer.org
Thu Feb 22 05:19:15 EST 2007


Tom Hawkins wrote:
> Any recommendations for speeding up extracting
> the set of leaves from a tree?

Tom,

The standard library already has this, in Data.Tree
and Data.Foldable.toList.

I'm interested to know how well that performs compared
to the roll-your-own solutions proposed so far in this
thread.

Thanks,
Yitz


More information about the Haskell-Cafe mailing list