Created
June 3, 2022 06:52
-
-
Save MamboBryan/ec5730b8e9e791c9fa30c6c08530d4f6 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
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