** SPOILERS ** 1

For 2(c) there is such a function.

More **SPOILERS** ?