funpow : int -> ('a -> 'a) -> 'a -> 'a
- funpow 3 tl [1,2,3,4,5]; > [4, 5] : int listApply tl zero times:
- funpow 0 tl [1,2,3,4,5]; > [1; 2; 3; 4; 5] : int listApply tl six times to a list of only five elements:
- funpow 6 tl [1,2,3,4,5]; ! Uncaught exception: ! List.Empty