<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hi I have a function like this : <br>myfunc :: [Char] -&gt; [Char] <br>It&nbsp; is supposed to work pretty much like this : <br><ol><li>Take a string</li><li>Put some elements of this input string to output string and put others to stack.</li><li>Pop elements to that output string too.</li><li>Do 2 and 3 recursively until stack is empty.</li><li>Print the output string when stack is empty.</li></ol><br><div>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.<br></div></div></body></html>