Haskell Binary Tree Function (map)

Posted by Bizarro on Stack Overflow See other posts from Stack Overflow or by Bizarro
Published on 2010-05-03T07:15:07Z Indexed on 2010/05/03 7:18 UTC
Read the original article Hit count: 140

Filed under:
|

How can i define a Haskell function which will apply a function to every value in a binary tree? So i know that it is similar to the map function - and that its type would be:

mapT :: (a -> b) -> Tree a -> Tree b

but thats about it...

© Stack Overflow or respective owner

Related posts about haskell

Related posts about binary-trees