Created
June 28, 2018 11:34
-
-
Save yogacp/403e832860969dd06b1df5f72957d46d to your computer and use it in GitHub Desktop.
First Movie Dsl
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
/** | |
* Create function to store movies data | |
*/ | |
fun movies(inputs: (Movies) -> Unit): Movies { | |
val movie = Movies() | |
inputs(movie) | |
return movie | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment