<div>Greetings, my friends!<br><br><br><br><br>What is the rationale behind such standard design for this function? Should there be none, it might be beneficial if it was removed( or at least moved to StdLib ). Better standard behavior might be sought as well.
<br><br>instance toString [x] | toChar x<br>&nbsp;&nbsp;&nbsp; where<br>&nbsp;&nbsp;&nbsp; toString::![x] -&gt; {#Char} | toChar x<br>&nbsp;&nbsp;&nbsp; toString xs = ltosacc 0 xs (createArray l ' ')<br>&nbsp;&nbsp;&nbsp; where<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = length xs<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ltosacc i [h:t] arr&nbsp;&nbsp;&nbsp; = ltosacc (inc i) t {arr &amp; [i]=toChar h}
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ltosacc _ []&nbsp;&nbsp;&nbsp; arr&nbsp;&nbsp;&nbsp; = arr<br><br><br><br><br>All the best!<br></div><span class="sg"><br><br>TK</span>