nostr:npub1k976fcfxdm6m7nwy4c4zkpjh0yatq9atulvwd45mmg7pm85q8mnqzsn2v4 That is a bit limiting since you can only specify fields. In an ideal world youd have a frozen class with methods that can do complex manipulations returning copies rather than being limited to dealing with fields.
You could of course always clone, modify, and refreeze.
But yea there are solutions (this being one of them)... none of them feel very elegant to me.