It is a nice example, which would be rarely used in the real systems.
Could be used for understanding how hot-code reloading could be implemented.
Real usage could be if we have some big state and wanna apply some operations on it, we could send "{execute, F}" into the server and pass code (i.e. a simple reference) instead of data.