Starting a function question would generally involve the user copying the function definition in the question to the editor. A ability to click the definition or a button would greatly speed the experience of this.
Another alternative is to the have the function definition prefilled in the editor field.