[Top][All Lists]

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

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

From: Mark H Weaver
Subject: bug#13905: (max inexact exact) => always inexact?
Date: Fri, 08 Mar 2013 13:59:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Daniel Llorens <address@hidden> writes:
> My interest in this is that I don't want
> (fold max -inf.0 exact-number-list)
> to return an inexact number.

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)


reply via email to

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