fork download
  1. def my_map
  2. result = []
  3. self.my_each {|item| result << yield(item)}
  4. result
  5. end
  6.  
  7. def my_select
  8. result = []
  9. self.my_each { |item|result << item if yield(item)}
  10. result
  11. end
Success #stdin #stdout 0.05s 9648KB
stdin
Standard input is empty
stdout
Standard output is empty