Back to archive

Thread

2 tweets

1
TIL that scala's mapValues calls the function on retrieval, every time. Which also means, any exceptions will triggered every time you use the map, not when you construct it.
2
I will be able to commit "kv => kv._1 -> kv._2" to muscle memory... I will be able to commit "kv => kv._1 -> kv._2" to muscle memory...