Hey, have a noobie question about composing `Optio...
# arrow
r
Hey, have a noobie question about composing
Option
instances. Let’s say I have
Copy code
val foo = Option("hello")
val bar = Option("world")

fun concat(first: String, second: String): String {
   return "$first $second"
}
I want to call
concat
with
foo
and
bar
given that each Option is
Some(String)
. What’s the best way to achieve this?