Seq optionalization in scala

后端 未结 0 567
既然无缘
既然无缘 2020-11-27 13:33

Is there a way more concise than map(Option(_)) to make Seq of Option from an ordinary set

like this:

val a: Seq[String] = Seq("foo", "b         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题