generate arrow method snippets