module TestTree where
|
|
|
|
|
|
applyNtimes :: Int -> (a -> a) -> a -> a
|
|
applyNtimes 0 _ accum = accum
|
|
applyNtimes n f accum = applyNtimes (n - 1) f (f accum)
|
|
|