Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created December 21, 2020 14:12
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 PatilShreyas/14355549b89955c50116b745ace33ece to your computer and use it in GitHub Desktop.
Save PatilShreyas/14355549b89955c50116b745ace33ece to your computer and use it in GitHub Desktop.
fun startSomething(something: Something, config: SomeConfig = DefaultSomeConfig()) {
// Do something
}
fun main() {
// Start something with default Config
startSomething(something)
// Start something with customized Config
someConfig = getSomeConfig()
startSomething(something, someConfig)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment