Normally yes, but here we are guaranteed to get a &#39;Just ...&#39; value because of the &#39;isNothing&#39; guard.<br>-deech<br><br><div class="gmail_quote">On Thu, Aug 5, 2010 at 5:47 PM, Brent Yorgey <span dir="ltr">&lt;<a href="mailto:byorgey@seas.upenn.edu">byorgey@seas.upenn.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Thu, Aug 05, 2010 at 05:42:40PM -0500, aditya siram wrote:<br>
&gt;<br>
&gt; brS :: Maybe Int -&gt; String -&gt; String<br>
&gt; brS i ss<br>
&gt;    | isNothing i   = ss<br>
&gt;    | otherwise     = (take (fromJust i) ss) ++ (brS newIndex newStr)<br>
&gt;                        where<br>
&gt;                            newIndex    = findIndex eqD newStr<br>
&gt;                            newStr      = drop ((fromJust i) +1) ss<br>
<br>
</div>/me makes deech write on the blackboard 100 times, &quot;I will not use fromJust&quot;<br>
<div><div></div><div class="h5">_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br>