https://kotlinlang.org logo
d

dr.dreigh

04/30/2020, 5:12 PM
Ah I was needing a sequence of things that could have nulls in them, ended up using `sequence`:
Copy code
sequence {
  while (true)
    yield(if (isNextNull(rs)) null else <mailto:this@orNull.next|this@orNull.next>(rs))
}