@patriknw Yes, that's a great idea. And also, switch to: merged.updated(key, value) instead of + & Tuple2 to avoid allocations if possible