From 9edabeaa21186c089a9b11f63ba3164f9fa753fb Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 10 Aug 2015 23:15:00 -0700 Subject: 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. --- 030container.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '030container.cc') 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 [ -- cgit 1.4.1-2-gfad0