maxCalls

Creates a function that invokes the given function as long as it's called <= n times.

Subsequent calls to the created function return the result of the last func invocation.

This function can be used as a decorator with decMaxCalls.

Example