From man functions
:
--copy OLDNAME NEWNAME creates a new function named NEWNAME,
using the definition of the OLDNAME function
So you should be able to write:
functions --copy fish_prompt fish_prompt2
and then provide fish_prompt in the way you wrote.