\SetAlgorithmName changes the prefix that comes in caption with \begin{algorithm}...\caption{lol...}\end{algorithm} from \usepackage{algorithm2e}.
But how to change that prefix/name for functions? Procedures? Etc? Is there \SetFunctionName?