Join Slack
Powered by
Well that specific example could also be done like...
# getting-started
r
robin
01/18/2017, 3:35 PM
Well that specific example could also be done like this:
Copy code
fun <T> List<T>.headAndTail() = this.first() to this.takeLast(size - 1)
Open in Slack
Previous
Next