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

You’re doing it wrong :)

  users.apply {
      asSequence()
      filter { it.lastName.startsWith("S")
      sortedBy { it.lastName }
      take(3)
  }
(totally untested)


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

Search: