fork download
  1. arr = [1, 3, 56, 7, 13 , 52]
  2. arr.delete_if() do |item|
  3. item > 7
  4. end
  5. puts arr
  6.  
Success #stdin #stdout 0.02s 7460KB
stdin
Standard input is empty
stdout
1
3
7