diff options
-rw-r--r-- | 063array.mu | 4 | ||||
-rw-r--r-- | html/063array.mu.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/063array.mu b/063array.mu index f0679c6d..04e6e427 100644 --- a/063array.mu +++ b/063array.mu @@ -41,7 +41,7 @@ def new-array -> result:&:@:_elem [ # fill an existing array with a set of numbers # (contributed by Caleb Couch) -recipe fill array:&:@:num -> array:&:@:num [ +def fill array:&:@:num -> array:&:@:num [ local-scope load-ingredients loopn:num <- copy 0 @@ -105,7 +105,7 @@ scenario fill-exits-gracefully-when-given-no-ingredients [ # swap two elements of an array # (contributed by Caleb Couch) -recipe swap array:&:@:num, index1:num, index2:num -> array:&:@:num [ +def swap array:&:@:num, index1:num, index2:num -> array:&:@:num [ local-scope load-ingredients object1:num <- index *array, index1 diff --git a/html/063array.mu.html b/html/063array.mu.html index b0578215..a668d466 100644 --- a/html/063array.mu.html +++ b/html/063array.mu.html @@ -74,7 +74,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># fill an existing array with a set of numbers</span> <span class="Comment"># (contributed by Caleb Couch)</span> -<span class="muRecipe">recipe</span> fill array:&:@:num<span class="muRecipe"> -> </span>array:&:@:num [ +<span class="muRecipe">def</span> fill array:&:@:num<span class="muRecipe"> -> </span>array:&:@:num [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> loopn:num<span class="Special"> <- </span>copy <span class="Constant">0</span> @@ -138,7 +138,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># swap two elements of an array</span> <span class="Comment"># (contributed by Caleb Couch)</span> -<span class="muRecipe">recipe</span> swap array:&:@:num, index1:num, index2:num<span class="muRecipe"> -> </span>array:&:@:num [ +<span class="muRecipe">def</span> swap array:&:@:num, index1:num, index2:num<span class="muRecipe"> -> </span>array:&:@:num [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> object1:num<span class="Special"> <- </span>index *array, index1 |