作業系統 / 執行管道外部命令
Feather 模組的 |. 運算子可用於管道傳輸不同的命令。
Feather
|.
let () = let sort_output = Feather.(echo "t\nz\nu\na\nb" |. process "sort" [""] |> collect stdout) in print_string sort_output