<div dir="ltr">Yes,<div><br></div><div> r' = record r { foo1 = x; foo3 = y }</div><div><br></div><div>/ Ulf</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 2, 2014 at 1:18 PM, Sergei Meshveliani <span dir="ltr"><<a href="mailto:mechvel@botik.ru" target="_blank">mechvel@botik.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">People,<br>
<br>
Suppose that record Foo ...<br>
<br>
has 8 fields foo1, ..., foo8,<br>
and<br>
r : Foo.<br>
<br>
How to express that r' is obtained from r by updating the field<br>
values for foo1 and foo3 only?<br>
<br>
Is this possible without rewriting the other 6 fields in the code?<br>
<br>
Thanks,<br>
<br>
------<br>
Sergei<br>
<br>
_______________________________________________<br>
Agda mailing list<br>
<a href="mailto:Agda@lists.chalmers.se">Agda@lists.chalmers.se</a><br>
<a href="https://lists.chalmers.se/mailman/listinfo/agda" target="_blank">https://lists.chalmers.se/mailman/listinfo/agda</a><br>
</blockquote></div><br></div>