Skip to content

Instantly share code, notes, and snippets.

@intari
intari / gist:a776a86fe0cd4f8e9d6f88b7c70ef661
Last active November 2, 2017 05:23 — forked from dodyg/gist:5616605
Kotlin Programming Language Cheat Sheet Part 2

This is a quick guide to Kotlin programming language. The previous part of this guide is here

Object Oriented

fun main(args : Array<String>) {
  class local (val x : Int)
  
  val y = local(10)
 println("${y.x}")
@intari
intari / gist:f9d78c2460570c5db041b06459b24ba8
Last active November 2, 2017 05:25 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin 1.1.50

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

{
"odata.metadata": "http://37.29.76.15:8080/Data.svc/$metadata#SalesByDate",
"value": [
{
"Period": "201804",
"PERNR": "99000005",
"Date": "2018-03-24T00:00:00",
"StoreID": "K393",
"PeriodDesc": "апрель 2018",
"PersonalHours": 0,