From 4a48bedcd1d708a43d43dc6259a4e45c52ea3d00 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 3 Dec 2017 23:25:40 -0800 Subject: 4134 - 'input' = 'ingredient' --- 066stream.mu | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '066stream.mu') diff --git a/066stream.mu b/066stream.mu index 9c7824dd..6d5d0520 100644 --- a/066stream.mu +++ b/066stream.mu @@ -6,7 +6,7 @@ container stream:_elem [ def new-stream s:&:@:_elem -> result:&:stream:_elem [ local-scope - load-ingredients + load-inputs return-unless s, 0/null result <- new {(stream _elem): type} *result <- put *result, index:offset, 0 @@ -15,14 +15,14 @@ def new-stream s:&:@:_elem -> result:&:stream:_elem [ def rewind in:&:stream:_elem -> in:&:stream:_elem [ local-scope - load-ingredients + load-inputs return-unless in *in <- put *in, index:offset, 0 ] def read in:&:stream:_elem -> result:_elem, empty?:bool, in:&:stream:_elem [ local-scope - load-ingredients + load-inputs assert in, [cannot read; stream has no data] empty? <- copy 0/false idx:num <- get *in, index:offset @@ -41,7 +41,7 @@ def read in:&:stream:_elem -> result:_elem, empty?:bool, in:&:stream:_elem [ def peek in:&:stream:_elem -> result:_elem, empty?:bool [ local-scope - load-ingredients + load-inputs assert in, [cannot peek; stream has no data] empty?:bool <- copy 0/false idx:num <- get *in, index:offset @@ -58,7 +58,7 @@ def peek in:&:stream:_elem -> result:_elem, empty?:bool [ def read-line in:&:stream:char -> result:text, in:&:stream:char [ local-scope - load-ingredients + load-inputs assert in, [cannot read-line; stream has no data] idx:num <- get *in, index:offset s:text <- get *in, data:offset @@ -71,7 +71,7 @@ def read-line in:&:stream:char -> result:text, in:&:stream:char [ def end-of-stream? in:&:stream:_elem -> result:bool [ local-scope - load-ingredients + load-inputs assert in, [cannot check end-of-stream?; stream has no data] idx:num <- get *in, index:offset s:&:@:_elem <- get *in, data:offset -- cgit 1.4.1-2-gfad0