Created
October 6, 2021 17:53
-
-
Save devrath/7570ae4085379cbac949368f54655b53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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