about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-10 23:15:00 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-10 23:15:00 -0700
commit9edabeaa21186c089a9b11f63ba3164f9fa753fb (patch)
treebf02bd60f67c53ea49ecd15fb67f3fd58b7138f2 /030container.cc
parentae2b59cf25e2cae2694af1974e550dd1bc5dd137 (diff)
downloadmu-9edabeaa21186c089a9b11f63ba3164f9fa753fb.tar.gz
1975 - let's start using traces in lessons
More friendly way to 'stash' stuff in the trace so that you can toggle
lines of code to see their stashed traces.
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/030container.cc b/030container.cc
index f7fe8e3a..5bc81a5f 100644
--- a/030container.cc
+++ b/030container.cc
@@ -100,6 +100,15 @@ if (t.kind == container) {
   return result;
 }
 
+:(scenario stash_container)
+recipe main [
+  1:number <- copy 34  # first
+  2:number <- copy 35
+  3:number <- copy 36
+  stash [foo: ], 1:point-number/raw
+]
++app: foo: 34 35 36
+
 //:: To access elements of a container, use 'get'
 :(scenario get)
 recipe main [