I think this is pretty easy with comprehensions: foldRose f z (Node x []) = [f x z] foldRose f z (Node x ns) = [f x y | n <- ns, ...
確定! 回上一頁