Julian Leviston
2/1/2009 4:26:00 AM
some_array.select{|item| item>5}
For example
Why not make it bidirectional? So good for ruby programmers learning
python too? I'd be interested in that.
Sent from my iPhone
On 01/02/2009, at 3:19 PM, r <rt8396@gmail.com> wrote:
> Hello all,
> I am a Python programmer and a Ruby Nuby. I have not found a guide
> available for Python programmers wishing to learn Ruby. I know Python
> and would like to write a tut so future people in my position can make
> the change easier.
>
> Would anybody who knows the Ruby language care to get involved in this
> project?
>
> I want to set up some examples like -- How do you handle situations in
> Ruby where you would use a list comprehension in Python? for example
> to iterate over a container selecting the items that pass a test [obj
> for obj in list if obj.attribute == this] ,etc, etc...
>
> This would help to break the ice.
>