diff options
Diffstat (limited to '064list.mu')
-rw-r--r-- | 064list.mu | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/064list.mu b/064list.mu index c26b302a..47d47754 100644 --- a/064list.mu +++ b/064list.mu @@ -276,7 +276,7 @@ def reverse list:&:list:_elem temp:&:list:_elem/contained-in:result -> result:&: scenario reverse-list [ local-scope - list:&:list:number <- push 1, 0 + list:&:list:num <- push 1, 0 list <- push 2, list list <- push 3, list run [ @@ -290,6 +290,19 @@ scenario reverse-list [ ] ] +scenario stash-list [ + local-scope + list:&:list:num <- push 1, 0 + list <- push 2, list + list <- push 3, list + run [ + stash [list:], list + ] + trace-should-contain [ + app: list: 3 -> 2 -> 1 + ] +] + def to-text in:&:list:_elem -> result:text [ local-scope load-ingredients |