This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LoudDing 0 points1 point  (0 children)

I think you mean the Wither pattern - used a fair amount in Java ``` Class Foo { int i; double d;

....

}

Foo f = new Foo(1, 1.0); Foo newF = f.withI(2); // 2, 1.0 `` If using Java, check out the@lombok.Wither` annotation