`each_` and `eachline_`
LightAndLight opened this issue · comments
Isaac Elliott commented
array.each_ : Array a -> (a -> IO ()) -> IO ()
cmd.eachline_ : Cmd -> (String -> IO ()) -> IO ()
cmd.eachline_ command func
should be equivalent to io.andThen (cmd.lines command) (\lines -> array.each_ lines f)
, but avoids reading the entirety of stdin
into an array.