From 662d2a27d14115956015334eae786b74304cfbb8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 2 Oct 2015 00:34:44 -0700 Subject: 2235 --- tangle.mu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tangle.mu b/tangle.mu index b9d05bee..88722185 100644 --- a/tangle.mu +++ b/tangle.mu @@ -10,19 +10,19 @@ recipe factorial [ local-scope n:number <- next-ingredient { - +base-case + } - +recursive-case + ] -after +base-case [ +after [ # if n=0 return 1 zero?:boolean <- equal n, 0 break-unless zero? reply 1 ] -after +recursive-case [ +after [ # return n * factorial(n - 1) x:number <- subtract n, 1 subresult:number <- factorial x -- cgit 1.4.1-2-gfad0