From c0d61295ed3575cfea7d2a22d81bae93c6009308 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 25 Sep 2017 21:20:49 -0700 Subject: 4008 Allow list `push` operation to save result in a new list rather than mutate the existing list. --- html/057immutable.cc.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'html/057immutable.cc.html') diff --git a/html/057immutable.cc.html b/html/057immutable.cc.html index bd08a8f2..50e9ad43 100644 --- a/html/057immutable.cc.html +++ b/html/057immutable.cc.html @@ -626,17 +626,30 @@ if ('onhashchange' in window) { 562 continue; 563 } 564 -565 :(scenario contained_in_check) +565 :(scenario contained_in_product) 566 container test-list [ 567 value:num 568 next:&:test-list 569 ] -570 def test-remove x:&:test-list/contained-in:result, from:&:test-list -> result:&:test-list [ +570 def foo x:&:test-list/contained-in:result -> result:&:test-list [ 571 local-scope 572 load-ingredients 573 result <- copy 0 574 ] 575 $error: 0 +576 +577 :(scenario contained_in_is_mutable) +578 container test-list [ +579 value:num +580 next:&:test-list +581 ] +582 def foo x:&:test-list/contained-in:result -> result:&:test-list [ +583 local-scope +584 load-ingredients +585 result <- copy x +586 put *x, value:offset, 34 +587 ] +588 $error: 0 -- cgit 1.4.1-2-gfad0