From d059fe743df6a5e8a72fc1418f2c3ba1ed5ac1e6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 20 Oct 2016 00:37:24 -0700 Subject: 3524 --- html/064list.mu.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'html/064list.mu.html') diff --git a/html/064list.mu.html b/html/064list.mu.html index 2fad0c10..8d9a38ec 100644 --- a/html/064list.mu.html +++ b/html/064list.mu.html @@ -42,11 +42,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color next:&:list:_elem ] -def push x:_elem, in:&:list:_elem -> result:&:list:_elem [ +def push x:_elem, l:&:list:_elem -> l:&:list:_elem [ local-scope load-ingredients - result <- new {(list _elem): type} - *result <- merge x, in + result:&:list:_elem <- new {(list _elem): type} + *result <- merge x, l + reply result ] def first in:&:list:_elem -> result:_elem [ @@ -294,7 +295,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color # reverse the elements of a list # (contributed by Caleb Couch) -def reverse list:&:list:_elem temp:&:list:_elem -> result:&:list:_elem [ +def reverse list:&:list:_elem temp:&:list:_elem/contained-in:result -> result:&:list:_elem [ local-scope load-ingredients reply-unless list, temp -- cgit 1.4.1-2-gfad0