From b301e0c0e6b54dceecbe4ee1ef8f610411015c30 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 27 Jan 2018 00:28:51 -0800 Subject: 4200 Forgot to set up exuberant_ctags_rc as .ctags on new laptop. --- html/tangle.mu.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html/tangle.mu.html') diff --git a/html/tangle.mu.html b/html/tangle.mu.html index 469d4a0e..2dbb66d5 100644 --- a/html/tangle.mu.html +++ b/html/tangle.mu.html @@ -65,30 +65,30 @@ if ('onhashchange' in window) { 6 # This isn't a very tasteful example, just a basic demonstration of 7 # possibilities. 8 - 9 def factorial n:num -> result:num [ + 9 def factorial n:num -> result:num [ 10 local-scope 11 load-inputs -12 <factorial-cases> +12 <factorial-cases> 13 ] 14 -15 after <factorial-cases> [ +15 after <factorial-cases> [ 16 # if n=0 return 1 17 return-unless n, 1 18 ] 19 -20 after <factorial-cases> [ +20 after <factorial-cases> [ 21 # return n * factorial(n - 1) 22 { 23 break-unless n 24 x:num <- subtract n, 1 -25 subresult:num <- factorial x +25 subresult:num <- factorial x 26 result <- multiply subresult, n 27 return result 28 } 29 ] 30 -31 def main [ -32 1:num <- factorial 5 +31 def main [ +32 1:num <- factorial 5 33 # trailing space in next line is to help with syntax highlighting 34 $print [result: ], 1:num, [ 35 ] -- cgit 1.4.1-2-gfad0