unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Daniel Llorens <daniel.llorens@bluewin.ch>
To: Mark H Weaver <mhw@netris.org>
Cc: 13905@debbugs.gnu.org
Subject: bug#13905: (max inexact exact) => always inexact?
Date: Fri, 8 Mar 2013 20:19:10 +0100	[thread overview]
Message-ID: <EE7C8D4D-E84B-4140-9488-C530649C015D@bluewin.ch> (raw)
In-Reply-To: <8738w567la.fsf@tines.lan>


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	other threads:[~2013-03-08 19:19 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
2013-03-08 19:19   ` Daniel Llorens [this message]

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=EE7C8D4D-E84B-4140-9488-C530649C015D@bluewin.ch \
    --to=daniel.llorens@bluewin.ch \
    --cc=13905@debbugs.gnu.org \
    --cc=mhw@netris.org \
    /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).