Skip to content

Instantly share code, notes, and snippets.

@jitinsharma
Last active March 18, 2018 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jitinsharma/5c66cf39d10cc08766ce5673bc002914 to your computer and use it in GitHub Desktop.
Save jitinsharma/5c66cf39d10cc08766ce5673bc002914 to your computer and use it in GitHub Desktop.
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