# 99 questions/Solutions/70C

From HaskellWiki

< 99 questions | Solutions

(*) Count the nodes of a multiway tree.

```
nnodes :: Tree a -> Int
nnodes (Node _ ts) = 1 + sum (map nnodes ts)
```

From HaskellWiki

< 99 questions | Solutions

Jump to: navigation, search

(*) Count the nodes of a multiway tree.

```
nnodes :: Tree a -> Int
nnodes (Node _ ts) = 1 + sum (map nnodes ts)
```

- This page was last edited on 10 January 2017, at 03:53.
- Recent content is available under simple permissive license.