Problem 28

This commit is contained in:
2026-03-20 09:16:58 +01:00
parent 3eb67b7a9c
commit 4b4b923f9f
2 changed files with 22 additions and 0 deletions
@@ -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)