Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You're right. Let's compare to a more adequate language. Like Ruby.

  def inc_all(i, xs)
    xs.map { |x| x + i }
  end


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: