Findlay Smith Findlay Smith - 4 months ago 63
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?


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