Skip to content

Instantly share code, notes, and snippets.

@travisdachi
Last active August 17, 2016 22:40
Show Gist options
  • Select an option

  • Save travisdachi/4eee4741fc8fbcb6f8c1a26fba711b26 to your computer and use it in GitHub Desktop.

Select an option

Save travisdachi/4eee4741fc8fbcb6f8c1a26fba711b26 to your computer and use it in GitHub Desktop.
krefson["someKey"] = someData //put
val data = krefson["someKey", defalutValue] //get with default value
val anotherData: SomeData? = krefson["someOtherKey"] //get nullable
if ("someKey" in krefson) //check if "someKey" is exist
krefson.remove("someKey") //simply remove a key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment