<p dir="ltr">Roelof,</p>
<p dir="ltr">If you are working with a String type, you should remember that its just a list of chars:</p>
<p dir="ltr">type String = [Char]</p>
<p dir="ltr">So, you can take a look at different split functions at Data.List module.</p>
<p dir="ltr">If your strings are of type Text, look at Data.Text module for split functions.</p>
<p dir="ltr">Cheers.</p>
<div class="gmail_quote">20 лют. 2015 08:32, користувач "Roelof Wobben" <<a href="mailto:r.wobben@home.nl">r.wobben@home.nl</a>> написав:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Im try to the solve the exercise which does the following :<br>
<br>
"E 2 562 help he<br>
<br>
and convert it into<br>
<br>
(Error 2) 562 "help help<br>
<br>
First I thought to split the string on the " " but according to google Haskell do not have a split function.<br>
<br>
Can I use pattern matching on some way ?<br>
<br>
Roelof<br>
<br>
______________________________<u></u>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-<u></u>bin/mailman/listinfo/beginners</a><br>
</blockquote></div>