{"body":"class ImmutableDS {\n   has $!last-return;\n   has $.field-value;\n   has $.some-field is built(:bind) is rw = Proxy.new:\n      FETCH => -> $ { my $tmp = $!last-return; $!last-return = Nil; $tmp // $!field-value },\n      STORE => -> $, $field-value { $!last-return = self.new: :$field-value }\n   ;\n}\n\n\nmy ImmutableDS $immutable-data-structure .= new: :42field-value;\nmy $new-immutable-data-structure = $immutable-data-structure.some-field = 13;\nsay $new-immutable-data-structure.some-field;\nsay $immutable-data-structure.some-field;\n\n\n$immutable-data-structure.some-field = 3.14;\nsay $new-immutable-data-structure.some-field;\nsay $immutable-data-structure.some-field;","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/idzFo8NL","modified":1591183584,"id":"idzFo8NL","size":664,"lines":19,"own_paste":false,"theme":"","date":1591183584}