Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Higher-order messaging in Ruby
Victor 'Zverok' Shepelev
10/11/2006 5:38:00 PM
Hi all.
Jus stumbled upon interesting post here:
http://legacyofthemob.se/istari/2006/10/08/higher-order-messagin...
One more trick allowing goodies like
[0,1,2,3,4].where.nonzero?
# => [1,2,3,4]
[0,1,2,3,4].do_collect * 2
# => [0,2,4,6,8]
And so on.
Wow, IMHO.
V.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Higher-order messaging in Ruby
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password