[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

Re: foldl and foldr

From: "Sean E. Russell" <ser@...>
Date: 2004-02-25 15:05:50 UTC
List: ruby-core #2508
On Wednesday 25 February 2004 09:53, Eivind Eklund wrote:
> foldl is available under the name inject.

Holy cow.  I can't believe that I didn't see that.

Oh.  It is a new method in 1.8.  Well, sorry for the noise.

> We don't have foldr, but I'm not sure I see much point in adding it,
> given that it would have to do a reverse anyway, and it is better to
> make this extra cost obvious to the programmer.

foldr() can be -- and is, in my example code -- implemented without reverse(), 
which is the point of having it.

> The preferred place for RCRs is (as far as I know) rcrchive.net

Is this the official location?  RCR used to be at RubyGarden; I missed the 
move to rcrchive.net.

-- 
### SER   
### Deutsch|Esperanto|Francaise|Linux|XML|Java|Ruby|Aikido
### http://www.germane-software.com/~ser  jabber.com:ser  ICQ:83578737 
### GPG: http://www.germane-software.com/~ser/Security/ser_public.gpg

In This Thread