You might have misread the function name maybe.
From the look of your other function, you seem to call a function interface, it could be a similar approach: