Re:Learn Kotlin in Y Minutes
by seanalltogether on Thursday May 18, 2017 @03:28PM
(#14370304)
ok so I'm guessing you can't operate on more then one scope at once?
[ Parent
| on HN ]
You'd use nested let clauses and name the param instead of using the implicit "it"
Or just write a function to accomplish the same behavior: http://stackoverflow.com/a/35522422/364135
Would be nice if there was a multiLet in the stdlib. Probably something that happens eventually anyways.