
We often use Option to handle collections safely: val collection = Map.empty[Int, Int] // unsafe way that will throw an exception if key is not present val value = collection(1) // safe way val valueOpt = collection.get(1) match { case Some(val...
SWE at Snowflake. Ex-SWE Twitter/X, Route4me
Staff Software Engineer at Snowflake. Expert in scalable architecture, cloud infra, and security. Passionate problem-solver and mentor.
Markdown supported · ⌘↵ to post
No responses yet.