bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13905: (max inexact exact) => always inexact?


From: Daniel Llorens
Subject: bug#13905: (max inexact exact) => always inexact?
Date: Fri, 8 Mar 2013 20:19:10 +0100

On Mar 8, 2013, at 19:59, Mark H Weaver wrote:

> By the way, there's an easy way to accomplish what you want.  Simply use
> 'reduce' (from SRFI-1) instead of 'fold':
> 
> (reduce max -inf.0 exact-number-list)

I was about to roll my own, but this is exactly the case where fold doesn't 
work and reduce does.

Thank you,

        Daniel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]