Created
October 14, 2018 00:08
-
-
Save ciferkey/c10b422d1a464619a09d5a822e6ce2e2 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
fun Workbook.sheet(name: String? = null, block: Sheet.() -> Unit = {}): Sheet { | |
return if (name != null) { | |
createSheet(name) | |
} else { | |
createSheet() | |
}.apply(block) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment