Created
May 30, 2018 01:33
-
-
Save nwillc/f63e376f0d88bc80904c86fb609b00c5 to your computer and use it in GitHub Desktop.
Second attempt at forEach
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
inline fun NodeList.forEach(block: Node.() -> Unit) { | |
for (i in 0 .. (length - 1)) { | |
item(i).block() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment