Implement closures as replacement for .trans.