[Haskell-beginners] Can you identify this recursion pattern
please?
Colin Paul Adams
colin at colina.demon.co.uk
Tue Sep 29 14:51:23 EDT 2009
>>>>> "Colin" == Colin Paul Adams <colin at colina.demon.co.uk> writes:
Colin> The database query childGalleries gives me a list of all
Colin> the immediate children. So what I want is recursively, the
Colin> names of all the descendants, as well as the original name,
Colin> concatenated to a flat list. I'm struggling to identify the
Colin> higher-order recursion function I need.
I worked out that Data.Tree.unfoldM_BF was what I needed.
--
Colin Adams
Preston Lancashire
More information about the Beginners
mailing list