[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] name this HOF?
From: |
Ivan Raikov |
Subject: |
Re: [Chicken-users] name this HOF? |
Date: |
Fri, 25 Jan 2008 14:09:07 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
You could call it xmap (exchanged map), in analogy with xcons
(exchanged cons); whereas map applies a single function to each of
multiple arguments, xmap applies each of multiple functions to a
single argument.
-Ivan
"Graham Fawcett" <address@hidden> writes:
> Hi folks,
>
> Not a Chicken-specific question, but I wanted to pick your functional
> brains. I've been using this higher-order function:
>
> (define tup
> (lambda funcs
> (lambda args
> (map (lambda (f) (apply f args))
> funcs))))