Is there a shorter/better way to do the following :
mySeq.map { elmt =>
// do stuff
}
if (mySeq.isEmpty) {
// some other stuff
}
Ps : I’m using PlayFramework and this is meant to be used in templates, so if there are any “helpers” there I missed, I would be glad to discover those 😉
How about this?