From: miles@... (Miles Egan) Date: 2001-10-16T02:44:54+09:00 Subject: [ruby-talk:22580] Array.filter Where is the nondestructive Array.filter? I know that the old Array.filter has been deprecated but I don't see a function that gives me this: a = [1, 2, 3, 4] b = a.filter { |i| i % 2 = 0 } leaving a = [1, 2, 3, 4] and b = [2, 4]. -- miles egan