:: Int -> (a -> a) -> a -> a package:hledger-lib

Apply a function the specified number of times, which should be > 0 (otherwise does nothing). Possibly uses O(n) stack ?