Worked on some homework with some great help from some members, but the cadet just showed me this. Does it scare my brain with the format and exactly how it works? I tried to configure it to find out about it, but I do not understand.
fun2 :: String -> [String]
fun2 [] = []
fun2 (x:xs) = [fun1 (x:xs)] ++ runs (drop (length (munch (x:xs))) (x:xs))
fun1:
fun1 (x:xs) = group (x:xs)
Can someone break this for me to help? Work from one function to another is required.
Again, this is homework, I just ask to make it clear how Haskell understands how I can not get around him!
source
share