Normally yes, but here we are guaranteed to get a 'Just ...' value because of the 'isNothing' guard.
-deech
On Thu, Aug 05, 2010 at 05:42:40PM -0500, aditya siram wrote:/me makes deech write on the blackboard 100 times, "I will not use fromJust"
>
> brS :: Maybe Int -> String -> String
> brS i ss
> | isNothing i = ss
> | otherwise = (take (fromJust i) ss) ++ (brS newIndex newStr)
> where
> newIndex = findIndex eqD newStr
> newStr = drop ((fromJust i) +1) ss
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners