Hacker News new | past | comments | ask | show | jobs | submit login

Scala's for-comprehension work quite good. It is part of idiomatic Scala and works for all monads.

  for {
    thing <- whatever1
    thing2 <- mightFail
  } yield (thing, thing2)



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

Search: