g.merge can take lists as arguments.