How do I initialize a final field in Kotlin? : <p>Let's say I declared a final field with <code>private final String s</code> (Java) or <code>val s</code> (Kotlin). During initialization I want to initialize the field with the result of a call to a remote service. In Java I would be able to initialize it in the constructor (e.g. <code>s = RemoteService.result()</code>), but in Kotlin I can't figure out how to do that because as far as I can tell the field has to be initialized in the same line it's declared. What's the solution here?</p>
