Re:Learn Kotlin in Y Minutes
by heifer2822 on Friday May 19, 2017 @04:51AM
(#14373874)
selection?.organization?.owner is an optional value, meaning it might be nil/null. That "if let" basically says if it's not nil to assign its value to "person" and execute the block. Then inside the block you can treat "person" as a non-optional, known value.
[ Parent
| on HN ]
There are no comments on this comment yet.