You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A use of this is for those of us silly daring enough to use julia on the command line to process piped input, and who want to import some package. Right now,
$ cat nums.txt | julia -e 'import Stats; readlines(STDIN, chomp) |> lines->Int[int(x) for x in lines] |> hmean |> println'
ERROR: syntax: invalid syntax: ;in process_options at client.jl:214
in _start at client.jl:349
As a workaround, it is possible to embed a newline in the input. It's just not as convenient.
$ cat nums.txt | julia -e 'using Stats readlines(STDIN, chomp) |> lines->Int[int(x) for x in lines] |> hmean |> println'
1246.3385144536994
The text was updated successfully, but these errors were encountered:
A use of this is for those of us
sillydaring enough to use julia on the command line to process piped input, and who want to import some package. Right now,As a workaround, it is possible to embed a newline in the input. It's just not as convenient.
The text was updated successfully, but these errors were encountered: