LightAndLight / ipso

A functional scripting language.

Home Page:https://ipso.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`each_` and `eachline_`

LightAndLight opened this issue · comments

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.