RE: Snippet with generalized functions