Created
April 12, 2022 08:47
-
-
Save damodarnamala/8f4decdcbfde7f772cf1e2a42d2b9ad0 to your computer and use it in GitHub Desktop.
typealiasEffect
This file contains hidden or 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
| typealias Effect<A> = (A) -> A | |
| var effect: Effect<String> = { str in | |
| return str | |
| } | |
| // Ussage: | |
| print(effect("Damodar")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment