Last active
March 18, 2018 08:54
-
-
Save jitinsharma/5c66cf39d10cc08766ce5673bc002914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.jitinsharma | |
const val API_KEY = "abdfkdfgl453" | |
class Helper { | |
fun getSum(first: Int, second: Int): Int = first + second | |
fun sliceFilterAndSort(list: List<String>): List<String> = | |
list.subList(0, 4).filter { it.length > 3 }.sortedBy { it.length } | |
companion object { | |
val helperId: Int = 0 | |
fun getHelperType() : String = "Helper234" | |
} | |
} | |
data class Model( | |
var id: Int = 0, | |
var type: String = "" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment