From: ts Date: 2003-09-09T01:29:51+09:00 Subject: Re: Conditional inserts in inject >>>>> "D" == David Heinemeier Hansson writes: D> %w{ one two three }.inject(Array.new) { |a, e| a << e if e != "three" } ^^^^^^^^^^^^^^^^^^^^^^ this is the same than if e != "three" a << e else nil end this is why it return nil Guy Decoux