If you take the ^> operated code and swap for |> it still
fails, since that argument path isn't needed, coming instead from
the call to Sys.getenv_exn "PATH". This confused me as I was
comparing the two examples.
Or maybe don't use the Sys call at all in the second one, for clarity?
I'm just learning (hence reading the book) so I could be totally wrong, and would be happy to learn how/why.
If you take the
^>
operated code and swap for|>
it still fails, since that argumentpath
isn't needed, coming instead from the call toSys.getenv_exn "PATH"
. This confused me as I was comparing the two examples.Or maybe don't use the Sys call at all in the second one, for clarity?
I'm just learning (hence reading the book) so I could be totally wrong, and would be happy to learn how/why.