Alright, I'm not sure if there's a straight forward way to this in Haskell, but here's my predicament.
Say I have a text file that contains the following:
map z [1,2,3,4,5,6,7] Z
test x [1,2,3] X
map y [1,2,3,4,5] Y
map q [1...4] Q
What I need to do is find the largest value contained in the map "list". For instance in the above example, the highest any map goes to is 7. They are generally formatted as
map _ [] _
So I just need to find the max value held by the map in this example. Is there any straight forward way of doing this?
Thanks.
My plan of attack would be something like this:
Let us know how far down the list you make it before you get stuck, and we can provide some more pointed advice.