Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Matz talk at oscon

0 views
Skip to first unread message

Aaron Johnson

unread,
Aug 8, 2005, 4:15:28 PM8/8/05
to
Hi -

I was unable to get in to see Matz' talk at oscon last week, the
venue was full.
Are the slide available?

Aaron


gabriele renzi

unread,
Aug 8, 2005, 4:16:43 PM8/8/05
to

Emiel van de Laar

unread,
Aug 9, 2005, 4:08:39 PM8/9/05
to

I was trying out some of the examples on the slides. Specifically
slide number 57 gave me an unexptected result.

wee% ruby -v -renumerator -e "p [4,2,1].to_enum(:each_with_index).reject{|x,i| i%2==0}"
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.2.0]
[[2, 1]]

Is this 1.9 behaviour?

Thanks,

Emiel
--
Emiel van de Laar


Emiel van de Laar

unread,
Aug 9, 2005, 4:15:56 PM8/9/05
to
* Emiel van de Laar (em...@il.fontys.nl) wrote:
> * gabriele renzi (surren...@remove-yahoo.it) wrote:
> > Aaron Johnson ha scritto:
> > >Hi -
> > >
> > >I was unable to get in to see Matz' talk at oscon last week, the venue
> > >was full.
> > >Are the slide available?
> > >
> >
> > http://www.rubyist.net/~matz/slides/oscon2005/
>
> I was trying out some of the examples on the slides. Specifically
> slide number 57 gave me an unexptected result.
>
> wee% ruby -v -renumerator -e "p [4,2,1].to_enum(:each_with_index).reject{|x,i| i%2==0}"
> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.2.0]
> [[2, 1]]

Wait this is supposed to get rid of elements with even indexes; which
it does. Guess the slide is wrong.

Yukihiro Matsumoto

unread,
Aug 9, 2005, 7:17:09 PM8/9/05
to
Hi,

In message "Re: Matz talk at oscon"


on Wed, 10 Aug 2005 05:15:56 +0900, Emiel van de Laar <em...@il.fontys.nl> writes:

|> wee% ruby -v -renumerator -e "p [4,2,1].to_enum(:each_with_index).reject{|x,i| i%2==0}"
|> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.2.0]
|> [[2, 1]]
|
|Wait this is supposed to get rid of elements with even indexes; which
|it does. Guess the slide is wrong.

It is. The last minute change was wrong. Replace "reject" with
"select".

matz.


0 new messages