about summary refs log tree commit diff stats
path: root/070table.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-12-03 23:25:40 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-12-03 23:25:40 -0800
commit4a48bedcd1d708a43d43dc6259a4e45c52ea3d00 (patch)
tree85c1b7310cca932797d727a3de8da96eb175d8da /070table.mu
parentef7d834fdd826977cd8d43253052a7b8e1c5aa72 (diff)
downloadmu-4a48bedcd1d708a43d43dc6259a4e45c52ea3d00.tar.gz
4134 - 'input' = 'ingredient'
Diffstat (limited to '070table.mu')
-rw-r--r--070table.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/070table.mu b/070table.mu
index f82bb9c7..a4ec5afb 100644
--- a/070table.mu
+++ b/070table.mu
@@ -55,7 +55,7 @@ container table-row:_key:_value [
 
 def new-table capacity:num -> result:&:table:_key:_value [
   local-scope
-  load-ingredients
+  load-inputs
   result <- new {(table _key _value): type}
   data:&:@:table-row:_key:_value <- new {(table-row _key _value): type}, capacity
   *result <- merge 0/length, capacity, data
@@ -65,7 +65,7 @@ def new-table capacity:num -> result:&:table:_key:_value [
 # then we could handle conflicts simply by resizing the table
 def put-index table:&:table:_key:_value, key:_key, value:_value -> table:&:table:_key:_value [
   local-scope
-  load-ingredients
+  load-inputs
   hash:num <- hash key
   hash <- abs hash
   capacity:num <- get *table, capacity:offset
@@ -82,7 +82,7 @@ def put-index table:&:table:_key:_value, key:_key, value:_value -> table:&:table
 
 def index table:&:table:_key:_value, key:_key -> result:_value, found?:bool [
   local-scope
-  load-ingredients
+  load-inputs
   hash:num <- hash key
   hash <- abs hash
   capacity:num <- get *table, capacity:offset
@@ -102,7 +102,7 @@ def index table:&:table:_key:_value, key:_key -> result:_value, found?:bool [
 
 def abs n:num -> result:num [
   local-scope
-  load-ingredients
+  load-inputs
   positive?:bool <- greater-or-equal n, 0
   return-if positive?, n
   result <- multiply n, -1