Array#filter is Array#collect, yes?

I was looking at some code and came across somebody using
Array#filter. I couldn’t find it in the pickaxe, and looking through
the ChangeLog it looks like that was replace with Array#collect and
Array#collect!, is that correct?

Hi,

···

In message “Array#filter is Array#collect, yes?” on 03/07/06, Samuel Tesla samuel@alieniloquent.com writes:

I was looking at some code and came across somebody using
Array#filter. I couldn’t find it in the pickaxe, and looking through
the ChangeLog it looks like that was replace with Array#collect and
Array#collect!, is that correct?

Yes, “filter” is replaced by “collect!” (and “map!”).

						matz.