[plt-scheme] Some fine distinctions

From: Andreas Rottmann (a.rottmann at gmx.at)
Date: Tue May 12 19:41:46 EDT 2009

Eric Tanter <etanter at dcc.uchile.cl> writes:

> Right, even though that is not so nice to have to write that at each
> use site. Or alternatively to export any possible order for users to
> use.
>
> In a more general case, one could imagine something like:
>
> (f ? 3 ? ? 5) to say " here are the 2nd and 5th parameters".
>
FWIW, this is exactly what SRFI-26 does:

(define (f x y z)
  (+ (* x y) z))

((cut f <> 3 <>) 42 66) ; => 192

Cheers, Rotty


Posted on the users mailing list.