Problem 28
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package ninetyNineScalaProblems
|
||||
|
||||
import scala.annotation.tailrec
|
||||
|
||||
object Problem28:
|
||||
def lsort(list: List[List[Any]]): List[Any] =
|
||||
list.sortWith((a, b) => a.length < b.length)
|
||||
Reference in New Issue
Block a user