Skip to content

Instantly share code, notes, and snippets.

@MamboBryan
Created June 3, 2022 06:52
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 MamboBryan/ec5730b8e9e791c9fa30c6c08530d4f6 to your computer and use it in GitHub Desktop.
Save MamboBryan/ec5730b8e9e791c9fa30c6c08530d4f6 to your computer and use it in GitHub Desktop.
import Foundation
var greeting = "Hello, playground"
func getvalue<T>(m: Double) -> T {
return m as! T
}
func name<T>(callback:( _ data : T) -> Void){
callback("kotlin" as! T)
}
name(callback: { data in
print(data)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment