unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Joel James Adamson <adamsonj@email.unc.edu>
To: Hans Aberg <haberg-1@telia.com>
Cc: guile-user@gnu.org
Subject: Re: List functions
Date: Wed, 01 Dec 2010 12:35:53 -0500	[thread overview]
Message-ID: <m3vd3d1jly.fsf@chondestes.bio.unc.edu> (raw)
In-Reply-To: <82728ACE-C593-4789-BED2-45674C06057E@telia.com> (Hans Aberg's message of "Wed, 1 Dec 2010 17:28:13 +0100")

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

Hans Aberg <haberg-1@telia.com> writes:

> It seems natural to translate (f, g) x into ((f g) x), and () x into
> (() x), but I'm not sure if the lists (f g) and () can be made acting
> as functions this way.

(f g) would evaluate as a composition as long as f takes a procedure as
an argument and returns a function that takes x as its argument.  No
problems there.  Alternatively you could think of f returning a function
of x when it evaluates g.

Joel

-- 
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill

FSF Member #8164
http://www.unc.edu/~adamsonj

[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

  reply	other threads:[~2010-12-01 17:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01 16:28 List functions Hans Aberg
2010-12-01 17:35 ` Joel James Adamson [this message]
2010-12-01 17:48   ` Hans Aberg
2010-12-01 19:20     ` Keith Wright
2010-12-01 19:50       ` Hans Aberg
2010-12-01 20:26         ` Hans Aberg
2010-12-01 21:34         ` Keith Wright
2010-12-01 22:19           ` Hans Aberg
2010-12-01 22:43           ` Hans Aberg
2010-12-03 15:06           ` Hans Aberg
2010-12-01 19:51 ` Andy Wingo
2010-12-01 19:56   ` Hans Aberg
2010-12-02  9:57 ` Marco Maggi
2010-12-02 10:10   ` Marco Maggi
2010-12-02 11:31   ` Hans Aberg
2010-12-02 16:06   ` Hans Aberg
2010-12-03  9:20     ` Hans Åberg

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=m3vd3d1jly.fsf@chondestes.bio.unc.edu \
    --to=adamsonj@email.unc.edu \
    --cc=guile-user@gnu.org \
    --cc=haberg-1@telia.com \
    /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).