@@ -20,3 +20,25 @@ class Rectangle
end
class String
def select(&block)
String.build do |s|
each_char do |c|
s << c if yield c
def select!(&block)
i = 0
s = size
while i < s
if yield [i]
i += 1
else
s -= 1
The note is not visible to the blocked user.