I\'m doing a bit of Scala gymnastics where I have Seq[T] in which I try to find the \"smallest\" element. This is what I do right now:
Seq[T]
val leastOrNo
Also, it is available to do like that
Some(seq).filter(_.nonEmpty).map(_.minBy(_.something))