Skip to content

Instantly share code, notes, and snippets.

@raphait
raphait / Kubs.kt
Created June 21, 2018 22:44
Kotlin solution for Functional Kubs June 2018 version 2 - https://www.meetup.com/FunctionalKubs/events/251727590/
package kubs
const val START = 0 // static final in Java for primitive
const val END = 4
fun main(vararg args: String) {
//val is immutable like final in Java
val start = setOf( // syntax sugar and immutable ish (read-only cause is a Java Collection)
Pair(0, 1), Pair(0, 3),