Problem 70a

We will use this definition of a multiway tree in later problems

count : MTree a -> Int
count (MNode value list) =
    1 + List.sum (List.map count list)

Back to problem

results matching ""

    No results matching ""