Fix deprecation warning for function(fun/a)
Merge pull request #110 from 0xffea/function

Fix deprecation warning for function(fun/a)