Lab 6, tweaks.
This commit is contained in:
parent
b00e090791
commit
d5cd53f954
|
@ -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})"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue