Skip to content

Instantly share code, notes, and snippets.

@devrath
Created October 6, 2021 17:53
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 devrath/7570ae4085379cbac949368f54655b53 to your computer and use it in GitHub Desktop.
Save devrath/7570ae4085379cbac949368f54655b53 to your computer and use it in GitHub Desktop.
fun main() {
println("Start")
initiateUploadingImage(service)
println("End")
}
fun initiateUploadingImage(
imageUpload:(image :String)->Unit
) {
imageUpload("/Desktop")
}
val service = { image :String ->
println("Image from location `$image` is uploaded")
}
/********** OUTPUT:
Start
Image from location `/Desktop` is uploaded
End
*****************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment