FW: please help... small problem

hi I've attempted to cut down this module... but I cannot see where... can someone help... Ryan thanks From: ryanbloor@hotmail.comTo: Subject: FW: please help... small problemDate: Fri, 9 Nov 2007 21:57:30 +0000 sorry heres the code.... I always do that. From: ryanbloor@hotmail.comTo: Subject: please help... small problemDate: Fri, 9 Nov 2007 21:44:35 +0000 hi Is there anyway to cut down this code and to not use auxillary functons, but instead use pattern matching? The code basically splits up a list 'rslis' into a list of lists - but so each word is split up and the integers have been parsed. so.... ["hi ryan 1","hi jeff 2"] becomes [["hi","ryan" 1], ["hi","jeff", 2]].The code is far too long. I don't wanna use premade functions too much... pattern matching is required. Ryan The next generation of MSN Hotmail has arrived - Windows Live Hotmail Are you the Quizmaster? Play BrainBattle with a friend now! _________________________________________________________________ 100’s of Music vouchers to be won with MSN Music https://www.musicmashup.co.uk

Hi Ryan, You wrote:
I've attempted to cut down this module... but I cannot see where... can someone help...
You don't need "wordToInt" - just use "read" instead. Look at the type of the function "map" in the Prelude - you can use it to get rid of "method" and "test". After that, your program will be very short. Try it! Good luck, Yitz
participants (2)
-
Ryan Bloor
-
Yitzchak Gale