package kapitel_03 /** * Beispiel aus * * - Algorithmen und Datenstrukturen für Dummies * - von Andreas Gogol-Döring und Thomas Letschert * - Verlag Wiley-VCH; Oktober 2019 * - Kapitel 3, Daten und ihre Struktur * * @author A. Gogol-Döring, Th. Letschert */ object AuD_03_01_LexicalFirst_App extends App { def LexicalFirst(M: List[String]): String = if (M.isEmpty ) "" else M.min val words = List("a", "b", "c", "die", "Katze", "lief", "im", "Schnee") val first = LexicalFirst(words) println(first) }