Diff
Not logged in

Differences From Artifact [b7ca5af5f1eab32a]:

To Artifact [fb4d697dde7b0758]:


27 static Node Concat(const Node& l, const Node& r) 27 static Node Concat(const Node& l, const Node& r) 28 { 28 { 29 Node c = {l.sum + r.sum}; 29 Node c = {l.sum + r.sum}; 30 return c; 30 return c; 31 } 31 } 32 static Node Repeat(const Node& n, int k) 32 static Node Repeat(const Node& n, int k) 33 { 33 { 34 if(k==0) return Zero(); < 35 Node c = {n.sum * k}; 34 Node c = {n.sum * k}; 36 return c; 35 return c; 37 } 36 } 38 37 39 bool lazy; 38 bool lazy; 40 }; 39 }; 41 40