You're right, I forgot how `reduce` worked.  Was thinking I could just update `ids`.