|
|
|
|
|
by brobinson
3393 days ago
|
|
Ruby version is a pretty clear one-liner: validated_items = items.select { |item| is_validated?(item) }
Though I'd expect a check for validation to be an instance method, so it'd probably look like: validated_items = items.select(&:validated?)
|
|
Ruby seems to be going down the same path as Perl in trying to make all possible combinations of characters valid programs.