Implement unaryFun!array as function mapping size_t to elements