I see that (!!) for Data.Stream has arguments reversed, compared to !! on lists.&nbsp; The Haddock comment, however, suggests otherwise.&nbsp; Is the argument reversal intended?&nbsp; - Conal<br><br>From Data.Stream:<br><br><span style="font-family: courier new,monospace;">
-- | @xs !! n@ returns the element of the stream @xs@ at index</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- @n@. Note that the head of the stream has index 0.</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- /Beware/: passing a negative integer as the first argument will cause
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- an error.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
(!!) :: Int -&gt; Stream a -&gt; a</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">(!!) n (Cons x xs)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp; | n == 0&nbsp;&nbsp;&nbsp; = x</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; | n &gt; 0&nbsp;&nbsp;&nbsp;&nbsp; = (!!) (n - 1) xs</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp; | otherwise = error &quot;Stream.!! negative argument&quot;</span><br><br><br>