[Haskell-cafe] Troubles with Exercise 4.9 from YAHT

Chaddaï Fouché chaddai.fouche at gmail.com
Sat Jul 14 19:58:53 EDT 2007

2007/7/15, michael at schmong.org <michael at schmong.org>:
> from YAHT
> Exercise 4.9 Write a function elements which returns the elements in a
> BinaryTree
>  .....
>        Any clues on how to proceed?

You have to use pattern-matching on the constructors of the
BinaryTree, with a recursive function. Do you understand that ?


More information about the Haskell-Cafe mailing list