
5 Aug
2010
5 Aug
'10
7:20 p.m.
Normally yes, but here we are guaranteed to get a 'Just ...' value because
of the 'isNothing' guard.
-deech
On Thu, Aug 5, 2010 at 5:47 PM, Brent Yorgey
On Thu, Aug 05, 2010 at 05:42:40PM -0500, aditya siram wrote:
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
/me makes deech write on the blackboard 100 times, "I will not use fromJust" _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners