On Nov 10, 2007 11:54 AM, Ryan Bloor <[EMAIL PROTECTED]> wrote:
> hiya
>
> I was wondering how I would get the second function do recursively do the
> function for poolNews xs tried that and it fails.
>
> Ryan
>
>
>
> --Give wins, draws a rating.
>
>
>
> poolNews :: Result
> *->* PoolNews *->*
Looks to me like you want:
poolNewsB = foldr poolNews (0,0,0,0)
On Nov 10, 2007 11:54 AM, Ryan Bloor <[EMAIL PROTECTED]> wrote:
>
> hiya
>
> I was wondering how I would get the second function do recursively do the
> function for poolNews xs tried that and it fails.
>
> Ryan
>
>
>
>
> --Give
hiya
I was wondering how I would get the second function do recursively do the
function for poolNews xs tried that and it fails.
Ryan
--Give wins, draws a rating.
poolNews :: Result -> PoolNews -> PoolNews
poolNews (a,b,c,d,e) (home,away,goaless,scoredraw)
| c > d = (h