Hi I have a function like this :
myfunc :: [Char] -> [Char]
It is supposed to work pretty much like this :
- Take a string
- Put some elements of this input string to output string and put others to stack.
- Pop elements to that output string too.
- Do 2 and 3 recursively until stack is empty.
- Print the output string when stack is empty.
I couldn't figure out where to define stack and output string. Can you help me with that? I'm new to Haskell so I can't think in Haskell's logic very well.
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners