bj0
02/09/2018, 6:06 PMmap {}
can't be short-circuited like a forloop can right?Shawn
02/09/2018, 6:09 PMbj0
02/09/2018, 6:13 PMval responses = (0 until N).map { try { getResponse() } catch(e: ...) { e; stop getting responses } }
. So I end up with either a list of N
responses or a shorter list of responses that ends with a throwable objectShawn
02/09/2018, 6:14 PMmap
tbhShawn
02/09/2018, 6:15 PMbj0
02/09/2018, 6:16 PMbj0
02/09/2018, 6:17 PM