Created
December 22, 2017 17:44
-
-
Save shruti-basil-hs/01c6be1a9897a9363675e5cb47892ff7 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
Person(name).apply { foo() }; | |
//Equivalent 4 line Java code | |
Person getFoo(String name) { | |
Person person = new Person(name); | |
person.foo(); | |
return person; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment