Findlay Smith Findlay Smith - 1 year ago 94
Scala Question

Scala Exercises: blocked with the `Option` exercise

enter image description here

I'm currently revising my scala after a very long hiatus and i just can't get this answer - I've tried every possibly answer under the sun. I know this isn't typical stack overflow content but I have no clue what it is, what is the correct answer for the red underlined text?

Answer Source

your comparing String vs Option[String]...use Some("I am wrapped in something")

Imgur link showing this working for me

Incase this helps the literal text entered into that checkbox is Some("I am wrapped in something")

The second input box contains None