chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] name this HOF?


From: Graham Fawcett
Subject: [Chicken-users] name this HOF?
Date: Thu, 24 Jan 2008 23:25:27 -0500

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))))

((tup first third second) '(a b c d e))
=> (a c b)

((tup + * <) 10 20 30)
=>(60 6000 #t)

I called it 'tup', since it feels like a tuple-constructor. But is
there is another common name for it?

Graham




reply via email to

[Prev in Thread] Current Thread [Next in Thread]