about summary refs log tree commit diff stats
path: root/063array.mu
diff options
context:
space:
mode:
Diffstat (limited to '063array.mu')
-rw-r--r--063array.mu4
1 files changed, 2 insertions, 2 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