What is a better approach for operating on an arbitrary map value in Scala?
myLookup.get(index).orElse(myLookup.get(static_value)).map { doSomeCall(_).makeFooBar }


From the Scala doc of Option.map: 


  Returns a scala.Some containing the result of applying f to this scala.Option's value if      this scala.Option is nonempty. Otherwise return None.


This is exactly the type of task functional programming is made for. This simple chaining of Options using map is related to the fact that Option is a monad.