unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Bill Schottstaedt" <bil@ccrma.Stanford.EDU>
To: bug-guile@gnu.org
Subject: Re: (< complex) and friends
Date: Fri, 19 Sep 2008 06:23:57 -0700	[thread overview]
Message-ID: <20080919132021.M10915@ccrma.Stanford.EDU> (raw)
In-Reply-To: <49dd78620809171437r739ec0cave11d0728165e6292@mail.gmail.com>

map does not accept no list:

guile> (map (lambda (a) a))

Backtrace:
In standard input:
   1: 0* [map #<procedure #f (a)>]

standard input:1:1: In procedure map in expression (map (lambda # a)):
standard input:1:1: Wrong number of arguments to #<primitive-generic map>
ABORT: (wrong-number-of-args)


+ and * have a "natural" identity (0 and 1), so it is not silly that (+ a) is
(+ a 0) and (+) is (+ 0 0), but #t does not strike me as a natural identity
for < -- (< 1 1) is #f.   But I hate these kinds of discussions, so I defer...






  parent reply	other threads:[~2008-09-19 13:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-11 21:03 (< complex) and friends Bill Schottstaedt
2008-08-12  9:18 ` Neil Jerram
2008-09-17 21:37   ` Neil Jerram
2008-09-17 21:45     ` Bill Schottstaedt
2008-09-18 13:59       ` Jon Wilson
2008-09-18 19:02       ` Andy Wingo
2008-09-18 17:59     ` Bill Schottstaedt
2008-09-19  3:07       ` Jon Wilson
2008-09-19 23:11         ` Neil Jerram
2008-09-19 13:23     ` Bill Schottstaedt [this message]
2008-09-19 23:17       ` Neil Jerram
2008-09-19 23:59       ` Jon Wilson

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=20080919132021.M10915@ccrma.Stanford.EDU \
    --to=bil@ccrma.stanford.edu \
    --cc=bug-guile@gnu.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).