Extract Function

Top  Previous  Next

This is very similar to Introduce Explaining Variable.  Extract Function any highlighted expression and makes it the body of a new function, replacing the highlighted text with a call to the new function. It is used in similar situations to Introduce Explaining Variable, when reusability is desired.

 

 

 

Example