It&#39;s reasonably easy to read.<br>But you could make it more readable.&nbsp; Type signatures, naming the first lambda...<br><br><div><span class="gmail_quote">On 9/25/07, <b class="gmail_sendername">Andrew Coppin</b> &lt;<a href="mailto:andrewcoppin@btinternet.com">
andrewcoppin@btinternet.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">While using Haskell, I often find myself writing convoluted
<br>constructions such as this:<br><br>show_system =<br>&nbsp;&nbsp;unlines .<br>&nbsp;&nbsp;zipWith<br>&nbsp;&nbsp;&nbsp;&nbsp;(\l ms -&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Eq&quot; ++<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show l ++<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;: &quot; ++<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(concat $ intersperse &quot; + &quot; $ zipWith (\n x -&gt; x ++ &quot; x&quot; ++ show
<br>n) [1..] (init ms)) ++<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; = &quot; ++<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;last ms<br>&nbsp;&nbsp;&nbsp;&nbsp;)<br>&nbsp;&nbsp;&nbsp;&nbsp;[1..] .<br>&nbsp;&nbsp;map (map (take 8 . show))<br><br>And people complain that *Perl* is bad? This function is quite obviously<br>absurd. I mean, it works, but can *you* figure out what it does without
<br>running it? The question is, can anybody think of a better way to write<br>this function? (And more generally, functions like it.)<br><br>_______________________________________________<br>Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></blockquote></div><br>