Using function* to permit lambda with some benefits