[plt-scheme] 'complement'[?] of map
Thanks to you all, [Jos, Matthew, Grant ,Noel and Filipe ]
this is excellent!
[lazyness triumphs!]
Stephen
On Feb 17, 2008 8:13 PM, Filipe Cabecinhas <filcab at gmail.com> wrote:
>
> On 17 Feb, 2008, at 15:33, Jos Koot wrote:
>
> > I did not see compose in R6RS not in R6RS/lib, but it is likely to
> > be available in most Scheme implementations.
>
>
> It's not in the standards (R5RS and R6RS) but in the standard's text,
> it's definition makes an appearence:
>
> R5RS, page 32:
>
> (define compose
> (lambda (f g)
> (lambda args
> (f (apply g args)))))
>
> ((compose sqrt *) 12 75)
> ⇒ 30
>
> I think R6RS also has this definition in the text. It's not as
> powerful as the one that deals with multiple arguments but it's nice
> and works in many cases.
>
>
> F
>
>
--
Cheers,
Stephen
--
Stephen De Gabrielle
s.degabrielle at ucl.ac.uk
Telephone +44 (0)20 7679 5242 (x45242)
Mobile 079 851 890 45
Project: Making Sense of Information (MaSI)
http://www.uclic.ucl.ac.uk/annb/MaSI.html
UCLIC: University College London Interaction Centre
http://www.uclic.ucl.ac.uk/
Remax House - 31/32 Alfred Place
London - WC1E 7DP