Function composition and currying seem like a more natural translation to me.<p>Or you can think of it like this:<p>netstat_n &#62;&#62;= grep "tcp" &#62;&#62;= flip awk 5 &#62;&#62;= sort &#62;&#62;= uniq_c &#62;&#62;= sort_n<p>See also: <a href="http://okmij.org/ftp/Computation/monadic-shell.html" rel="nofollow">http://okmij.org/ftp/Computation/monadic-shell.html</a>