Kotlin
Tags: [[What I Know]] [[Languages]] [[Mobile Development]] [[Android]]
- Syntax
- No semicolons - defining package: `package com.aengusmcmillin.test` - import example: `import android.os.Bundle` - functions - basic `fun Bar() {}` - lambda `value -> result` - lambda 2 `value: String -> { return value.length }` - classes - basic: `class Foo {}` - with superclass: `class Foo : Bar() {}` - abstract:
abstract class Foo { abstract fun overridable() {} }
- null chaining: `nullableObject?.foo()` - Bitwise or: `val combinedFlags = flag1 or flag2` -
Linked References
- brain
- 04/18/20 Add [[Kotlin]] note with a handful of basic syntax notes