Hey Scala squad! In this post I'm going to show some ways of extracting values from list or sequence of boxed elements. It's a pretty common case when you have a Seq[B[A]], but instead of it you need to get Seq[A]. To be more precise it may be Seq[Try[String]] or List[Option[Int]].
Tag Archives how to
Have you ever heard about a median? I'm talking about that thing from mathematician statistics, which represents a "middle" value of a data set. If you are reading this, I bet you hear about it. Moreover you want to know how to implement a median function in Scala. So I'll show you how it can be done.