Lab 6, tweaks.

This commit is contained in:
Rhinemann 2023-06-08 13:47:22 +03:00
parent b00e090791
commit d5cd53f954
2 changed files with 2 additions and 4 deletions

View File

@ -12,4 +12,4 @@ open class Track(val numberInAlbum: Int, val trackName: String, val feature: Str
"#${this.numberInAlbum}: ${this.trackName} ft. ${this.feature} (${this.duration})"
}
}
}
}

View File

@ -29,9 +29,7 @@ fun main() {
println("$chromatica\n")
chromatica.tracks.sortBy { it.style }
println("Album sorted by musical style:\n$chromatica\n")
println("${chromatica.albumName} tracks sorted by musical style:\n${chromatica.tracks.sortedBy { it.style }.joinToString("\n")}\n")
val durationRange = 1.minutes.. 3.minutes + 30.seconds