8 Feb
2002
8 Feb
'02
10:12 a.m.
"DK" <psycho_jim_4@yahoo.com> writes:
What I would like to ask, is how can I take a string from a list, and manipulate it, in order to convert it to an integer.
That's very simple, and I'm of course happy to help out with homework questions. (That's what mailinglists are for, after all.) So, how about:
convert :: String -> Integer convert _ = 0
(This converts all strings to the integer zero.) HTH, HAND. :-) -kzm -- If I haven't seen further, it is by standing in the footprints of giants