You are viewing a single comment's thread. Return to all comments →
With Scala, i tried
arr.inits.toList.init.map(_.last)
Seems rather inefficient with all the transformations but looks cool.
Seems like cookies are disabled on this browser, please enable them to open this website
Reverse a List
You are viewing a single comment's thread. Return to all comments →
With Scala, i tried
Seems rather inefficient with all the transformations but looks cool.