[plt-scheme] [library doc bug?]combinators.plt/doc.txt curry yrruc same def

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Tue Jun 24 10:46:32 EDT 2008

On Tue, Jun 24, 2008 at 10:48 AM, Larry Evans <cppljevans at suddenlink.net> wrote:
>> http://planet.plt-scheme.org/package-source/cce/combinators.plt/1/4/doc.txt
> has the same definition for curry and yrruc.  I assume
> that since the letters in 'yrruc' are the reverse of
> those in 'curry' that one function is a kind of
> inverse of the other; however, the definition
> does not reflect that.

The 'yrruc' function appends the argument lists in the opposite order
(although it does not reverse the order of the individual arguments in
each list).

For instance:
((curry list 1 2) 3 4) = (list 1 2 3 4)
((yrruc list 1 2) 3 4) = (list 3 4 1 2)

I plan to add PLT 4.0.1-compatible, keyword-supporting versions of
these functions to cce/scheme.plt version 1.2 (as yet unreleased) by
the names curry1 and curry1r.  The new scheme/function library
(provided by default in #lang scheme) provides curry and curryr, which
have a similar purpose but different behavior.

Carl Eastlund

Posted on the users mailing list.