Issue #58: Complete the @function decorator and allow it to return a value