Skip to content

Instantly share code, notes, and snippets.

@jitinsharma
Last active Mar 18, 2018
Embed
What would you like to do?
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