[clean-list] [ standards design ] StdEnv StdList ( instance
toString [x] ) -- possibly superfluous behavior
TK
0000tk at gmail.com
Sat Aug 19 21:34:40 MEST 2006
Greetings, my friends!
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.
instance toString [x] | toChar x
where
toString::![x] -> {#Char} | toChar x
toString xs = ltosacc 0 xs (createArray l ' ')
where
l = length xs
ltosacc i [h:t] arr = ltosacc (inc i) t {arr & [i]=toChar h}
ltosacc _ [] arr = arr
All the best!
TK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.science.ru.nl/pipermail/clean-list/attachments/20060819/d53faf5e/attachment.html
More information about the clean-list
mailing list