Skip to content

Instantly share code, notes, and snippets.

@lopcode
lopcode / example-1.kt
Last active July 6, 2016 20:02
Kotlin examples
// Data classes
data class Something(val something: String)
val output = Something("test").toString() // Something(something=test)
val equal = Something("test2") == Something("test2") // true
val notEqual = Something("test3") == Something("test4") // false

Keybase proof

I hereby claim:

  • I am carrotengineer on github.
  • I am carrot (https://keybase.io/carrot) on keybase.
  • I have a public key whose fingerprint is 94C2 0B1C CEFC 246F 09B6 D58E 3F82 8A4E 7A5B 1220

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am voxelcarrot on github.
* I am carrot (https://keybase.io/carrot) on keybase.
* I have a public key whose fingerprint is 94C2 0B1C CEFC 246F 09B6 D58E 3F82 8A4E 7A5B 1220
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am drayshak on github.
* I am drayshak (https://keybase.io/drayshak) on keybase.
* I have a public key whose fingerprint is AA75 CEE6 8D3B 586A 6959 3473 A888 FBAF 913D 8070
To claim this, I am signing this object: