unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Daniel Llorens <daniel.llorens@bluewin.ch>
Cc: 13905@debbugs.gnu.org
Subject: bug#13905: (max inexact exact) => always inexact?
Date: Fri, 08 Mar 2013 13:59:29 -0500	[thread overview]
Message-ID: <8738w567la.fsf@tines.lan> (raw)
In-Reply-To: <75E5F130-E4B6-49CF-9937-CF2D153B494C@bluewin.ch> (Daniel Llorens's message of "Fri, 8 Mar 2013 13:43:15 +0100")

Daniel Llorens <daniel.llorens@bluewin.ch> 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)

   Regards,
     Mark





  parent reply	other threads:[~2013-03-08 18:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-08 12:43 bug#13905: (max inexact exact) => always inexact? Daniel Llorens
2013-03-08 18:44 ` Mark H Weaver
2013-03-08 18:59 ` Mark H Weaver [this message]
2013-03-08 19:19   ` Daniel Llorens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738w567la.fsf@tines.lan \
    --to=mhw@netris.org \
    --cc=13905@debbugs.gnu.org \
    --cc=daniel.llorens@bluewin.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).