Pass function as variable in pipe

Thanks @gregvaughn @NobbZ @peerreynders !